HTML — Block vs Inline Elements
HTML elements are either:
- Block-level → start on a new line (e.g.,
<div>
,<p>
,<h1>
) - Inline-level → stay in line (e.g.,
<span>
,<a>
,<strong>
)
<p>This is a <span style='color:blue;'>blue word</span> inside a paragraph.</p>