Block-Level Elements VS Inline Elements

block-level-elements-vs-inline-elements

Block-Level Elements
A block-level element always starts on a new line.

  • A generic container for block-level content.
  • Headings.

  • A paragraph.

    • An unordered list.
    1. An ordered list.
  • A list item (inside
      or
      ).
  • A section of a document.
  • An independent self-contained content.
  • Example:
    index.html

    This is a Heading

    This is a paragraph inside a div.

    Total
    0
    Shares
    Leave a Reply

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

    Previous Post
    stringifying-errors:-a-uniquely-javascript-problem

    Stringifying Errors: A Uniquely Javascript Problem

    Next Post
    why-is-impossible-to-have-a-clean-architecture-inside-a-frontend-project

    Why is impossible to have a clean architecture inside a frontend project

    Related Posts