1 min to read
Formatting
html has elements to define special meaning for text.
Text Formatting
html has elements to define special meaning for text.
Formatting elements table
| Tag | Description | Syntax |
|---|---|---|
<b> |
bold text | <b>bold text</b> |
<strong> |
Important text | <strong>Important text</strong> |
<i> |
italic text | <i>italic text</i> |
<u> |
underlined text | <u>underlined text</u> |
<em> |
Emphasized text | <em>Emphasized text</em> |
<mark> |
Marked text | <mark>Marked text</mark> |
<small> |
Small text | <small>Small text</small> |
<del> |
<del>Deleted text</del> |
|
<ins> |
Inserted text | <ins>Inserted text</ins> |
<sub> |
Subscript text | <sub>Subscript text</sub> |
<sup> |
Superscript text | <sup>Superscript text</sup> |
Example
<body>
<b>bold text</b>
<strong>Important text</strong>
<i>italic text</i>
<u>underlined text</u>
<em>Emphasized text</em>
<mark>Marked text</mark>
<small>Small text</small>
<del>Deleted text</del>
<ins>Inserted text</ins>
<sub>Subscript text</sub>
<sup>Superscript text</sup>
</body>
Comments