Home >> Tutorials/FAQs >> CSS Tutorials >> Index

CSS Tutorials - What Is a Block Element

By: FYICenter.com

(Continued from previous topic...)

What Is a Block Element?

A block element is formatted as a rectangular block occupying the entire width of the parent content box. Examples of block elements are:

  • <P> - A paragraph of text and/or inline elements.
  • <PRE> - A paragraph of text with white spaces preserved.
  • <LI> - A list item. Identical to <P; except that it has list-item marker on the left.
  • <TABLE> - A table of cells. Each cell is identical to <P>
  • <FORM> - An input form. Identical to <P> except that it has no margins.
  • <DIV> - A container to group elements into a block element.
  • <H1/H2/H3...> - A title line. Identical to <P> except that it has different margins and font size
  • <HR> - A horizontal ruler.

(Continued on next topic...)

  1. What Is the HTML Element Formatting Model?
  2. What Are the Formatting Behaviors of HTML Elements?
  3. What Is a Block Element?
  4. What Is an Inline Element?
  5. What Is a Floating Element?
  6. Hot To Specify the Content Box Size of a Block Element?
  7. Hot To Specify Padding Spaces of a Block Element?
  8. Hot To Test Padding Spaces on All 4 Sides?
  9. How To Specify Borders of a Block Element?
  10. Hot To Test Borders with Different Widths, Styles, and Colors?
  11. How To Specify Margin Spaces of a Block Element?
  12. How To Test Margin Spaces on All 4 Sides?
  13. How To Specify the Color of the Margin Area?
  14. How To Specify the Color of the Padding Area?
  15. What Are the Background Properties of a Block Element?
  16. How To Set Background to Transparent or Non-transparent?
  17. How To Add Images to Backgrounds?
  18. What Is the Text Paragraph Formatting Model?
  19. How In-Line Elements Are Mixed in Text Lines?
  20. How In-line Elements Affect Line Box Heights?
  21. Is FORM a Block Element?

Selected Developer Jobs:

More...