What is the difference between block and inline HTML elements?
expand_more
<div>, <p>, <h1>) start on a new line and stretch to fill the full width of their parent container. Inline elements (e.g. <span>, <a>, <strong>) do not start on a new line and only take up as much width as their content. Block elements can contain other block or inline elements; inline elements cannot contain block elements.