Tags and tag attributes of HTML
(1) single tag-only when used alone can the meaning be fully expressed. The syntax is:
& lt label name >
For example:
(2) Double label-it consists of two parts: "head label" and "tail label", which must be used in pairs. The grammar is:
& lt tags > content affected by tags
For example:
& ltb> text should be bold.
(3) The attribute of the tag-the tag should define the desired setting parameters through the attribute. The grammar is:
& lt Label Attribute 1= Attribute Value Attribute 2= Attribute Value ... >; Affected content
Note: A. Not all tags have attributes.
B. enclose all attribute values in double quotation marks.
C. Don't be there. "
(4) Character reference-If you want to display "",you need to treat it as a special character.
Character references end with "&"
1) Numeric Character Reference-Numeric Representation of Characters
Characters are represented by giving their codes (decimal or hexadecimal) in the character set.
Such as decimal character reference "
2) Character Entity Reference-Symbolic representation of characters
It is more intuitive to represent characters by name than by numeric characters.
For example, ">" stands for the character ">", where gt (greater than) is a mnemonic greater than the symbol.
(5) Precautions
The purpose of using it is to add explanations to different parts of the text, which is convenient for authors and people who read HTML source files to understand and modify later. The format is as follows:
& lt! -Comment content->
Note: comments are not limited to one line, and the length is not limited, and the closing mark ""is on the same line.