Element Types
- Block-level elements, such as p, h1, div, and
body, are always displayed on a line by themselves. They can
only be children of other block-level elements.
- Inline elements, such as a, em, and span, do
not force the start of a new line. They can be children of any
other element.
- List-item elements include only li. They have a
"bullet".
- We can change the type of any element with the
display
property.
display: block | inline | list-item | none
- Elements can also float
José M. Vidal
.
6 of 14