HTML offers various formatting tags to style content for better readability and emphasis. These tags help make text bold, italic, highlighted, and more, enhancing the user experience.
| Tag | Description |
|---|---|
<b> | Bold text |
<strong> | Important (semantic bold) |
<i> | Italic text |
<em> | Emphasized (semantic italic) |
<mark> | Marked (highlighted) text |
<small> | Smaller text |
<del> | Deleted (strikethrough) text |
<ins> | Inserted (underlined) text |
<sub> | Subscript text (e.g., H2O) |
<sup> | Superscript text (e.g., x2) |
<p> This is <b>bold</b>, <strong>important</strong>, <i>italic</i>, and <em>emphasized</em> text.
Also <mark>marked</mark>, <small>small</small>, <del>deleted</del>, and <ins>inserted</ins>.
Water is H<sub>2</sub>O and math is x<sup>2</sup>. </p>
<b> for visual bold and <strong> for importance.<html> <body> <p><b>We offer quality IT education for all students.</b></p> <p><strong>Your future in technology starts here!</strong></p> </body> </html>
We offer quality IT education for all students.
Your future in technology starts here!
<strong> adds semantic importance for screen readers and SEO.
<i> or <em> tags.<html> <body> <p><i>We focus on practical IT education for real-world skills.</i></p> <p><em>Your success is our top priority at AIT.</em></p> </body> </html>
We focus on practical IT education for real-world skills.
Your success is our top priority at AIT.
<i> tag defines italic style, while <em> emphasizes text meaning.
<mark> for yellow highlight and <small> for smaller font.<html> <body> <p>Complete your <mark>AIT course registration</mark> today.</p> <p><small>Empowering students since 2010 with quality IT education.</small></p> </body> </html>
Complete your AIT course registration today.
Empowering students since 2010 with quality IT education.
<mark> adds a yellow background highlight, and <small> reduces font size for copyright or notes.
<sub> for lower text (H2O) and <sup> for powers (23).<html> <body> <p>In HTML, H<sub>2</sub>O represents water.</p> <p>In programming, 2<sup>3</sup> means 2 raised to power 3.</p> </body> </html>
In HTML, H2O represents water.
In programming, 23 means 2 raised to power 3.
<sub> places characters slightly below the normal line, whereas <sup> places them slightly above.