HTML Text Formatting Elements: Full List
With the help of using HTML Text Formatting tags, we can define text with a special meaning.
List of HTML Text Formatting:
S.N. | Tag | Description |
---|---|---|
1. | <b> | bold text |
2. | <em> | emphasized text |
3. | <i> | a part of text in an alternate voice or mood |
4. | <small> | smaller text |
5. | <strong> | important text |
6. | <sub> | subscripted text |
7. | <sup> | superscripted text |
8. | <ins> | inserted text |
9. | <del> | deleted text |
10. | <mark> | marked/highlighted text |
Example:
<!DOCTYPE html>
<html>
<body>
<h1> HTML Text Formatting Tags List with Example </h1>
<p><b>This text is bold.</b> </p>
<p><strong>This text is important!</strong> </p>
<p><i>This text is italic</i></p>
<p><em>This text is emphasized</em> </p>
<p><small>This is some smaller text.</small> </p>
<p>This is some <mark> MARK </mark> Text.</p>
<p> I love to <del> Play </del> Write Posts.</p>
<p>My favorite color is <del> Red </del> <ins> Orange</ins>.</p>
<p>This is <sub>subscripted</sub> text.</p>
<p>This is <sup>superscripted</sup> text.</p>
</body>
</html>
Output:
HTML Text Formatting Tags List with Example
This text is bold.
This text is important!
This text is italic
This text is emphasized
This is some smaller text.
This is some MARK Text.
I love to Play Write Posts.
My favorite color is Red Orange.
This is subscripted text.
This is superscripted text.