Home  >  Article  >  Web Front-end  >  Organizing common tags in XHTML

Organizing common tags in XHTML

高洛峰
高洛峰Original
2017-02-21 13:57:221438browse

What are XHTML tags?

XHTML tag elements are the basic building blocks of XHTML documents. XHTML tags can be understood as the tags used by the XHTML language to define "what this is, what that is" in an XHTML document.
XHTML tags are keywords surrounded by angle brackets, often appearing in pairs, such as 100db36a723c770d327fc0aef2ce13b173a6ac4ed44ffec12cee46588e518a5e. This tag indicates that this is an hmtl (xhtml) document. The first tag in a tag pair is the start tag, and the second tag is the end tag.
There are also a small number of tags that are not paired or have no end tags, such as line break tags df250b2156c434f3390392d09b1c9563.
XHTML tag closing
In the XHTML specification, all tags must be closed. Usually paired tags are closed with a closing tag, and unpaired tags are closed with a space plus />, such as df250b2156c434f3390392d09b1c9563.
Although the browser can recognize unclosed tags, from a regulatory and long-term perspective, closing tags is necessary.

Commonly used XHTML tags
100db36a723c770d327fc0aef2ce13b173a6ac4ed44ffec12cee46588e518a5etag
This tag indicates that this is an hmtl (xhtml) document, except for the XHTML file type declaration , all other XHTML tag elements must be embedded within this tag.

<html>  
<head> ... </head>  
<body>  
<p>文字段落等正文内容</p>  
</body>  
</html>


93f0f5c25f18dab9d176bd4f6de5d30e9c3bca370b5104690d9ef395f2c5f8d1 Tag
93f0f5c25f18dab9d176bd4f6de5d30e9c3bca370b5104690d9ef395f2c5f8d1 Marks the XHTML document Header information, which is usually required by the browser and additional instructions for the XHTML document, such as CSS styles loaded in the document or other script information.

b2386ffb911b14667cb8f0f91ea547a76e916e0f7d1e588d4f442bf645aedb2f Tag
This tag defines the title of the entire XHTML document and is used to display in the title bar at the top of the browser window. This tag is embedded Nested within 93f0f5c25f18dab9d176bd4f6de5d30e9c3bca370b5104690d9ef395f2c5f8d1.

<head>  
<title>XHTML 标签 - XHTML教程</title>  
</head>  
<body></body>标签

As the name suggests, this tag describes the body content of the XHTML document, and all the body content that needs to be displayed is included in this tag.

XHTML Title
XHTML document title is divided into 6 levels, defined by 4a249f0d628e2318394fd9b75b4636b1 - 4e9ee319e0fa4abc21ff286eeb145ecc respectively.

<h1>一级标题</h1>  
<h1>二级标题</h1>  
<h1>三级标题</h1>

Note that this title is not a b2386ffb911b14667cb8f0f91ea547a7 title, but typically 4a249f0d628e2318394fd9b75b4636b1 is at its core equivalent to a b2386ffb911b14667cb8f0f91ea547a7

XHTML paragraph
XHTML paragraph defined by e388a4556c0f65e1904146cc1a846bee94b3e26ee717c64999d7867364b1b4a3 tag:

<p>这是一个段落</p>

XHTML hyperlink
XHTML hyperlink defined by3499910bf9dac5ae3c52d5ede738348516ef26f8b7ea0fc89bdf90e275a93e5d Tag definition:

<a href="http://www.php.cn">5iDev Web开发在线教程</a>

XHTML image
XHTML image is defined through the a1f02c36ba31691bcfe87b2722de723b tag:

<img src="flower.jpg" alt="花" />


In this tag, provide the image source with the src attribute, and the tag will display the flower.jpg image in the browser.

XHTML form
##

<form>  
各种表单元素(文本域、下拉列表、单选框、复选框等)   
</form>

For more articles related to the arrangement of common tags in XHTML, please pay attention to the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn