Block elements take up the full width available and always start on a new line.
Exapmles include: <div>, <p>, <header>
This is a block-level paragraph element
Inline elements only take up as much width as necessary and do not start on a new line.
Examples include: <span>, <a>, <stong>
This is a paragraph with an inline span element inside
This text contains inline strong text that flows in line.
block element
block element
block element
block element
block element
inline elementinline elementinline elementinline elementinline element
© 2025 Block vs Inline Elements Tutorial