Frontend path for backend programmers 04-html element classification, backend 04-html
Directory
- Block-level elements
- Inline Element
- Inline block-level elements
- Summary
I. block-level elements)
Definition: By default,Exclusive rowIs a block-level element.
Features:
Common block-level elements: <Div>, <p>,
2. inline)
Definition: Inline element, also called intra-Row Element. By defaultSame rowAnd the height and width of the element.Cannot be setIs an inline element.
Features:
Common inline Elements: <A>, <span>, <br>, <I>, <em>, <strong>, <label>, <q>, <var>, <cite>, <code>
3. inline block elements (inline-block)
Definition: By defaultSame rowAnd the height and width of the element.ConfigurableIs an inline element.
Features:
Common inline block-level elements: , <input>
Iv. Summary
Regardless of the elements, they can all be converted to each other through the display attribute in css.