HTML Text Formatting Tags
HTML offers multiple inline tags which enable text appearance and meaning modifications including bold formatting, italicization, underlining, strikethrough effects, and superscripts.

Common Text Formatting Tags
| Tag | Purpose | Example |
|---|---|---|
| <b> | Bold (non-semantic) | <b>Bold text</b> |
| <strong> | Bold with importance | <strong>Important text</strong> |
| <i> | Italic (non-semantic) | <i>Italic text</i> |
| <em> | Emphasized (semantic italic) | <em>Emphasized text</em> |
| <u> | Underlined text | <u>Underlined</u> |
| <mark> | Highlighted text | <mark>Highlighted</mark> |
| <small> | Smaller text | <small>Fine print</small> |
| <del> | Strikethrough (deleted text) | <del>Deleted</del> |
| <ins> | Inserted text (underline) | <ins>Inserted</ins> |
| <sub> | Subscript | H<sub>2</sub>O |
| <sup> | Superscript | x<sup>2</sup> |
Example
<p><b>This is bold text</b></p> <p><strong>This is strong and important</strong></p> <p><i>This is italic text</i></p> <p><em>This is emphasized</em></p> <p><u>This is underlined</u></p> <p>This is <mark>highlighted text</mark>.</p> <p>This is <small>small print</small>.</p> <p>This is <del>deleted</del> and <ins>inserted</ins>.</p> <p>Water formula: H<sub>2</sub>O</p> <p>Math: x<sup>2</sup> + y<sup>2</sup></p>

Use semantic tags for better SEO and accessibility.
Quickly Find What You Are Looking For
OnlineTpoint is a website that is meant to offer basic knowledge, practice and learning materials. Though all the examples have been tested and verified, we cannot ensure the correctness or completeness of all the information on our website. All contents published on this website are subject to copyright and are owned by OnlineTpoint. By using this website, you agree that you have read and understood our Terms of Use, Cookie Policy and Privacy Policy.
point.com