HTML formatting tags are special codes that you include in your HTML document to define the structure and appearance of your text. These tags help you make your content visually appealing and easy to read.
Use: To make text bold.
Example: <strong>This text is bold</strong>
or <b>This is also bold</b>
.
Use: To make text italicized.
Example: <em>This text is italicized</em>
or <i>This is also italicized</i>
.
Use: To underline text.
Example: <u>This text is underlined</u>
.
Use: To create subscript and superscript text.
Example: <sub>Subscript</sub>
and <sup>Superscript</sup>
.
Use: To draw a line through text.
Example: <s>This text has a strikethrough</s>
or <strike>Another strikethrough example</strike>
.
In recent HTML versions, several new formatting tags have been introduced to enhance the styling options for developers. These include:
Check below preview:
© Copyright Sahad Sarang 2024