Display Block / Inline

  • Elements with display: inline will show up in the same line
  • Elements with display: block get their own lines
  • HTML Paragraphs are block by default
  • HTML Spans are line
  • Larger elements like lists and tables are block
  • These are only the defaults and can be overwritten

6 / 26