Every HTML element has a default display value, which can either be block or inline.
Block-Level Elements
A block-level element always starts on a new line, and the browsers
automatically adds a margin before and after the element.
A block-level element always takes up the full width available (entire
space on the screen).
Some commonly used block elements are: p, div, nav, main, and li.
Here are some Block-level elements in HTML -
Inline Elements
An inline element does not start on a new line.
An inline element only takes up as much width as necessary.
Some commonly used inline elements are: span, button, img, and br.
Here are some Inline elements in HTML -