Block and inline elements

Blocks start on a new line, inline elements stay in the text.

HTML · Block and inline elementsBeginner
<div>A block element takes the whole row.</div>
<div>Another block below it.</div>
<p>Inline elements like <a href="#">links</a>, <b>bold</b> and <span>spans</span> stay inside the line.</p>
blockinlinedisplayflow