Home > Article > Web Front-end > Organizing common tags in XHTML_HTML/Xhtml_Web page production
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 . 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
.
Close XHTML tags
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
.
Although browsers can recognize unclosed tags, closing tags is necessary from a regulatory and long-term perspective.
Commonly used XHTML tags
tag
This tag indicates that this is an hmtl (xhtml) document. Except for the XHTML file type declaration, everything else All XHTML tag elements must be embedded within this tag.
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 nested in < ;head>.
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
Note that this title is not a
XHTML paragraph
XHTML paragraph is defined by the
XHTML hyperlink
XHTML hyperlink is defined by the tag:
XHTML images
XHTML images are defined with the tag:
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
XHTML form is used to collect user input information, such as user comments, etc. The form is defined by