The empty elements in css are: 1. br; 2. hr; 3. img; 4. input; 5. link; 6. meta; 7. area; 8. command. CSS stipulates that each element has a display attribute, and each element has a default display value.
The operating environment of this tutorial: windows10 system, css3 html5 version. This method is suitable for all brands of computers.
(Recommended tutorial: css video tutorial)
First of all, css stipulates that each element has a display attribute to determine the type of the element. Each element has The default diaplay value, for example, the default display value of div is "block", which means it is a "block-level" element; the default display attribute value of span is "inline", which is an "inline" element.
1. Inline elements include: a b span img input select strong
2. Block-level elements include: div ul ol li dl dt dd h1 h2 h4...p
3. Common empty elements:
Uncommon ones include:
< ;area>,