HTML · HTML Tutorial · Lesson 9
HTML Formatting
Bold, italic, marked, deleted, subscript and more.
HTML contains several elements for defining text with a special meaning.
Example
<p><b>Bold text</b></p>
<p><strong>Important text</strong></p>
<p><i>Italic text</i></p>
<p><em>Emphasized text</em></p>
<p><mark>Marked text</mark></p>
<p><small>Smaller text</small></p>
<p><del>Deleted text</del></p>
<p><ins>Inserted text</ins></p>
<p>H<sub>2</sub>O and x<sup>2</sup></p>
| Tag | Description |
|---|---|
| <b> | Bold text |
| <strong> | Important text |
| <i> | Italic text |
| <em> | Emphasized text |
| <mark> | Marked / highlighted text |
| <small> | Smaller text |
| <del> | Deleted text |
| <ins> | Inserted text |
| <sub> | Subscript text |
| <sup> | Superscript text |
Tip:
<strong> and <em> add meaning (importance and emphasis), which screen readers announce. <b> and <i> only change the look.Keep reading “HTML Formatting”
Sign up to read the full lesson, try every example in the live editor, and take the 5-question quiz.