Skip to main content

Command Palette

Search for a command to run...

Block vs Inline Element

Published
1 min readView as Markdown

Elements are categorized into two types they are

  • Block level element

  • Inline element

    BLOCK LEVEL ELEMENT

    The element which takes the full width of the screen is called a block-level element. there are several block-level elements, the most powerful block-level element is "<div></div>".

  • these all mentioned below are block-level elements.

INLINE ELEMENT

The element which takes only the required space is called an inline element. some examples are <span> ,<br>,<b>,<hr>

these all mentioned below are inline elements.

H

Nice, Best of luck for new articles.

1