HTML Two types of labels: row labels, block labels
row Label: contains A, span, EM, Strong, IMG, var;
A tag: Mainly used to link to a different page;
Span Tags: used primarily to style and manipulate text within a line;
EM tags: generally used to emphasize the text, using italic embodiment;
Strong tags: generally used to emphasize the text, using bold font expression;
IMG Tag: Image reference tag, where the SRC attribute is written to the address of the picture;
var tag: The label of the named variable in JavaScript.
Block Tags: contains P, DIV, UL, OL, Li, DL, DT, DD, H1~H6;
P Tags: Paragraph tags, paragraph text use, default format: Paragraph end of the line;
DIV Tags: the main use tag for dividing blocks;
UL Tag: The main label of the unordered list, followed by a dot (black);
OL Tags: the main label of the sequence table, followed by the general and orderly 1,2,3,4,5 ...;
Li tag: The body in the list uses tags
DL Tag: The main label of the custom label;
DT Tag: The header of the custom label;
DD Tag: The explanation (description) information of the header of the custom label;
H1~h6:6-level title tags, font size in turn smaller.
The difference between a block label and a row label:
- Block Tags: occupy a row alone, you can make the value of a wide height setting;
- Row Label: Display in one line, can not be a wide-height numerical setting;
Nesting rules
- Block labels can be nested, row labels can not be nested block labels.
- P tags do not set block attribute tags, can set A,span, text ...
- When nesting, pay attention to the indentation of the code.
Two types of HTML tags: row labels, block labels