HTML Typography

HTML typography refers to the structuring and styling of text content on a web page using HTML elements


HTML Formatting Elements

  • <b> - Bold text

  • <strong> - Important text

  • <i> - Italic text

  • <em> - Emphasized text

  • <mark> - Marked text

  • <small> - Smaller text

  • <del> - Deleted text

  • <ins> - Inserted text

  • <sub> - Subscript text

  • <sup> - Superscript text


Example Code

<b>This text is bold</b> <br>
<strong>This text is important!</strong> <br>
<i>This text is italic</i> <br>
<em>This text is emphasized</em> <br>
<small>This is some smaller text.</small> <br>
<p>Do not forget to buy
    <mark>milk</mark>
    today.
</p>
<p>My favorite color is
    <del>blue</del>
    red.
</p>
<p>My favorite color is
    <del>blue</del>
    <ins>red</ins>
    .
</p>
<p>This is <sub>subscripted</sub> text.</p>
<p>This is <sup>superscripted</sup> text.</p>

output

HTML Formatting Elements