Every HTML element has a default display value depending on what type of element it is. The default display value for most elements is block or inline.
-
Block elements always start on a new line and take
up the full width available. Examples include
<div>
and<p>
elements. -
Inline elements do not start on a
new line and only take up as much width as necessary. Any height and
width properties will not affect on this element. Examples include
<span>
and<a>
elements.
Fortunately, the default display can be overridden. The Flexbox lets containers decide how to evenly distribute their children including their size and the space between them.