CSS Block and inline level elements

CSS Block and inline level elements

Nearly all HTML elements are either block or inline elements. The characteristics of block elements include:

  • begin on a new line
  • Height, line-height and top and bottom margins can be manipulated
  • defaults to 100% of their containing element, unless a width is specified

Examples of block elements include

,

,

,

,

Leave a Reply

Your email address will not be published. Required fields are marked *