Basic Text Formatting in HTML
1. <b>Bold Text</b>: The <b> tag is used to make text bold.
Example: <b>This is bold text</b>
2. <i>Italic Text</i>: The <i> tag is used to italicize text.
Example: <i>This is italicized text</i>
3. <u>Underlined Text</u>: The <u> tag is used to underline text.
Example: <u>This is underlined text</u>
4. <strong>Strong Text</strong>: The <strong> tag is used to indicate strong importance, usually
displayed as bold text.
Example: <strong>This is important text</strong>
5. <em>Emphasized Text</em>: The <em> tag is used to emphasize text, usually displayed as
italic.
Example: <em>This is emphasized text</em>
6. <small>Small Text</small>: The <small> tag is used to display smaller text.
Example: <small>This is small text</small>
7. <mark>Marked Text</mark>: The <mark> tag is used to highlight text.
Example: <mark>This text is highlighted</mark>
8. <del>Deleted Text</del>: The <del> tag is used to show text that has been deleted, usually
displayed with a strikethrough.
Example: <del>This text is deleted</del>
9. <ins>Inserted Text</ins>: The <ins> tag is used to show inserted text, usually displayed with an
underline.
Example: <ins>This text is inserted</ins>
10. <sub>Subscript Text</sub>: The <sub> tag is used for subscript text.
Example: H<sub>2</sub>O
11. <sup>Superscript Text</sup>: The <sup> tag is used for superscript text.
Example: X<sup>2</sup>
12. <br> Line Break: The <br> tag is used to insert a line break.
Example: Line 1<br>Line 2
13. <hr> Horizontal Rule: The <hr> tag is used to insert a horizontal rule (a thematic break).
Example: <hr>