HTML Inline Elements, Inline Elements | HTML Inline Block

HTML Inline Elements


  • inline elements like:

    • links <a>
    • emphasised words <em>
    • important words <strong>
    • short quotes <q>
    • abbreviations <abbr>

Block elements are meant to structure the main parts of your page, by dividing your content in coherent blocks.

Inline elements are meant to differentiate part of a text, to give it a particular function or meaning. Inline elements usually comprise a single or few words.

<p>Have you seen this <a href="https://www.youtube.com">amazing video</a> on YouTube?</p>

#Opening and closing tags

All block-level elements have an opening and closing tags.

As a result, self-enclosing elements are inline elements, simply because