Home  >  Article  >  Web Front-end  >  What are the commonly used tags in XHTML

What are the commonly used tags in XHTML

php中世界最好的语言
php中世界最好的语言Original
2018-01-24 09:33:312324browse

This time I will bring you what are the commonly used tags in XHTML, and what are the precautions for using common tags in XHTML. The following is a practical case, let's take a look.

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 is this, what is that" 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 the tag.

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

93f0f5c25f18dab9d176bd4f6de5d30e9c3bca370b5104690d9ef395f2c5f8d1 Tag

93f0f5c25f18dab9d176bd4f6de5d30e9c3bca370b5104690d9ef395f2c5f8d1 Indicates the header information of the XHTML document. This information is usually required by the browser and the XHTML document. Additional instructions, such as CSS styles or other script information loaded by the document.

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. The tag is nested in 93f0f5c25f18dab9d176bd4f6de5d30e 9c3bca370b5104690d9ef395f2c5f8d1.

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

6c04bd5ca3fcae76e30b72ad730ca86d36cc49f0c466276486e50c850b7e4956 Tag

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 usually 4a249f0d628e2318394fd9b75b4636b1 is at its core equivalent to a b2386ffb911b14667cb8f0f91ea547a7

XHTML paragraph

XHTML paragraph consists of8d5359d7acd57fbd757004226d27415d Tag definition:

<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

You have mastered the methods of these cases. For more exciting information, please pay attention to php Chinese website
Other

related articles!

Related reading:

How to use title tags and paragraph tags in XHTML


In HTML/XHTML How to use the img image tag in


In the responsive framework, how to handle the automatic line wrapping of the table header

The above is the detailed content of What are the commonly used tags in XHTML. For more information, please follow other related articles on 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