From the viewpoint of HTML, tags are divided into:
-
Text labels level p, span, a, b, i, u, em
-
Container level tag div, h series, li, dt, dd
from the point of view of the label, and into the line-level elements block elements -
Row-level elements (text of all stages except the p tag-label)
- Side by side with other elements inline
- Width and height can not be set
-
Block-level element (p-level tags and labels all containers)
- On a separate line, not side by side
- Acceptable width and height, and default to no width as the parent
Row-level block-level element and each converting elements:
- The block-level elements (such as div) and the line conversion elements; inline: the display
- By display: block; the inline element (such as span) switch into a block-level element