This time I will show you how to use title tags and paragraph tags in XHTML, and what are the precautions for using title tags and paragraph tags in XHTML. The following is a practical case. Get up and take a look.
XHTML Title OverviewWhen we write Word documents, we often use titles, such as "Chapter 1", "1.2.1", etc. There is also the concept of title in XHTML syntax. Six levels of titles are defined in XHTML, namely
to :
<h1 id="第一级标题">第一级标题</h1>
<h2 id="第二级标题">第二级标题</h2>
<h3 id="第三级标题">第三级标题</h3>
<h4 id="第四级标题">第四级标题</h4>
<h5 id="第五级标题">第五级标题</h5>
<h6 id="第六级标题">第六级标题</h6>
Use of titles
<h1 id="第一级标题">第一级标题</h1> <h2 id="第二级标题">第二级标题</h2> <h3 id="第三级标题">第三级标题</h3> <h4 id="第四级标题">第四级标题</h4> <h5 id="第五级标题">第五级标题</h5> <h6 id="第六级标题">第六级标题</h6>Use of titles
In XHTML documents, titles are very important, search
IndexEngine uses titles to index the structure and content of your web pages. We must be good at using titles to identify our document hierarchy. Among the titles, the first level title is the highest, and then decreases in sequence. Generally speaking, in XHTML documents, the title applies to the following places in the document (within the
According to the website level:
<h1>定义网站标题 <h2>定义网站导航或者栏目 <h3>定义文章标题According to the website content:
<h1>定义网站标题 <h2>定义文章标题 <h3>定义栏目标题For h4 to h6 titles larger than h3, you can choose them in appropriate places, such as copyright statements or disclaimer notices and other relatively important places.
Also please note that the levels must be decreasing. The level below h1 should be h2, and then h3...
Some suggestions for using titles
Since h1 names the core content of the entire page, generally h1 can only appear once (this is not absolutely the case, but it must not appear multiple times) and used in the most emphasized part of the article. Therefore, if for a specific content page, h1 is often used in the title of the article to highlight the importance of the article, such as this site:
<h1>XHTML 标题<h1>At this time, whether the website title (website logo) uses h1 again will depend on the actual situation. It depends.
Title usage
ExerciseUse
EditorOpen our learning document 1.html file, copy the above to
tags to< ;body> tag:
<h1 id="第一级标题">第一级标题</h1> <h2 id="第二级标题">第二级标题</h2> <h3 id="第三级标题">第三级标题</h3> <h4 id="第四级标题">第四级标题</h4> <h5 id="第五级标题">第五级标题</h5> <h6 id="第六级标题">第六级标题</h6>Save and open the 1.html file with a browser (if it is already open, click the browser refresh button to reload the document, the same below, no further details) Paragraph p taghi~你好!
In XHTML, a paragraph is defined through the
tag.XHTML paragraph
Paragraph tag example:
<p>这是一个段落。</p>In actual production work, we use a large number of paragraph tags.
After adding a paragraph tag to the text, the browser will automatically add a paragraph break to the text. But instead of relying on the empty
to form a blank line, we should use theline break tag.
Line break
In XHTML documents, the title or paragraph tag only provides a line break tag. If we need a blank line or multiple line breaks, we need a line break tag
. In XHTML, hitting the Enter key to break a new line when editing Word is invalid, and the browser will ignore the new line gap generated in this way.
Example:
<p>这是一些内容</p> <br /><br /> <p>这是另一些内容</p>Since the line break tag only informs the browser that this place needs a line break, but has no substantive content, this tag does not appear in pairs, and a
only breaks the line. Once, multiple line breaks are required, please enter multiple
tags.
If the
tag is inserted in
or
?
Although we can still achieve line breaks using
, that is the result of the browser being compatible with the HTML4.0 specification.
In the XHTML specification, for tags that are not paired, you only need to add a space after the end of the content, and then use /> to close the tag, such as
and and other tags.
So it's
instead of
or
.
How to use img image tag in HTML/XHTML
In responsive framework , How to deal with the automatic line wrapping of the table header
The above is the detailed content of How to use title tags and paragraph tags in XHTML. For more information, please follow other related articles on the PHP Chinese website!

本教程向您展示了如何在Windows的Chrome或Edge中找到所有打开的标签页上的特定文本或短语。有没有办法在Chrome中所有打开的标签页上进行文本搜索?是的,您可以使用Chrome中的免费外部Web扩展在所有打开的标签上执行文本搜索,无需手动切换标签。一些扩展如TabSearch和Ctrl-FPlus可以帮助您轻松实现这一功能。如何在GoogleChrome的所有选项卡中搜索文本?Ctrl-FPlus是一个免费的扩展,它方便用户在浏览器窗口的所有选项卡中搜索特定的单词、短语或文本。这个扩

抖音作为一款备受欢迎的短视频社交平台,拥有着庞大的用户群体。对于抖音创作者来说,带标签引流是一种有效提升内容曝光度和吸引关注的方法。那么,抖音怎么带标签引流呢?本文将为您详细解答这个问题,并介绍相关技巧。一、抖音怎么带标签引流?发布视频时,要确保选择与内容相关的标签。这些标签应涵盖视频的主题和关键词,以便让用户通过标签更容易找到您的视频。利用流行标签是增加视频曝光的有效方法。研究当前热门标签和趋势,将其巧妙地融入视频描述和标签中。这些热门标签通常具有更高的曝光度,能够吸引更多观众的关注。3.标签

在浏览抖音作品时,我们经常能看到标签后面有一个时钟图标。那么,这个时钟到底是什么呢?本文将围绕“抖音标签后面的时钟是什么”展开讨论,希望为您的抖音使用提供一些有益的参考。一、抖音标签后面的时钟是什么?抖音会推出一些热门话题挑战,用户参与时会在标签后看到一个时钟图标,这代表作品正在参与话题挑战,并显示挑战的剩余时间。对于一些具有时效性的内容,如节假日、特殊活动等,抖音会在标签后面附上时钟图标,提醒用户该内容的有效期限。3.热门标签:当某个标签变得热门时,抖音会在标签后面添加时钟图标,表示这个标签正

区别:1、head标签用于定义文档头部,它是所有头部元素的容器,而header标签用于定义文档的页眉(介绍信息);2、浏览器都支持head标签,而旧版本浏览器均不支持header标签,需要IE9+以上浏览器才支持header标签。

HTML中video视频标签详解HTML5中的video标签是一种用于在网页上播放视频的标签。它可以使用不同的格式来呈现视频,例如MP4、WebM、Ogg等等。在本篇文章中,我们将详细介绍video标签的使用方法,并提供具体的代码示例。基本结构下面是video标签的基本结构:

钉钉app外部联系人标签怎么删除?钉钉中是可以删除外部联系人标签的功能,但是多数小伙伴不知道钉钉外部联系人标签如何的删除,接下来就是小编为用户带来的钉钉app外部联系人标签删除方法图文教程,感兴趣的用户快来一起看看吧!钉钉app外部联系人标签怎么删除1、首先打开钉钉APP,主页面中点击如下图所示的【管理】功能;2、然后进入到企业管理的界面,找到其中的【外部联系人】;3、接着在外部联系人设置功能页,选择【标签管理】服务;4、之后在联系人标签主页面,选择你需要删除的标签组类型;5、最后点击标签组红色

如何使用HTML和CSS实现一个具有固定导航菜单的布局在现代网页设计中,固定导航菜单是常见的布局之一。它可以使导航菜单始终保持在页面顶部或侧边,使用户可以方便地浏览网页内容。本文将介绍如何使用HTML和CSS实现一个具有固定导航菜单的布局,并提供具体的代码示例。首先,需要创建一个HTML结构来呈现网页的内容和导航菜单。以下是一个简单的示例

随着Web应用的发展,带标签的输入框越来越受欢迎。这种输入框可以让用户更方便地输入数据,同时也方便用户对已输入的数据进行管理和搜索。Vue是一款非常强大的JavaScript框架,它可以帮助我们快速地实现带标签的输入框。本文将介绍如何使用Vue实现带标签的输入框。第一步:创建Vue实例首先,我们需要在页面上创建Vue实例,代码如下:&l


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Mac version
God-level code editing software (SublimeText3)

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Notepad++7.3.1
Easy-to-use and free code editor

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.
