There are some elements in html for formatting text with a special meaning. These tags change the appearance of text on a webpage. For example using these tags you can make text bold, italic, emphasized, highlighted , strong too and you can do more things. So these tags are very useful.
In this article you'll learn about text formatting tags.
There are two types of formatting tags
Element Name | Short description |
---|---|
<b> | make text bold. |
<strong> | make text strongly important. |
<i> | make text italic. |
<em> | make text Emphasized. |
<mark> | make text highlighted. |
<small> | make text smaller than normal text size. |
<del> | make text deleted. |
<ins> | make text Inserted. |
<sub> | make text Subscripted. |
<sup> | make text Superscripted. |
Now lets see how it works on a webpage.
I am <b>bold text.</b>
I am <strong>strong text.</strong>
I am <i>italic text.</i>
I am <em>emphasized text.</em>
I am <mark>marked text.</mark>
I am <small>small text.</small>
I am <del>deleted text.</del>
I am <ins>Inserted text.</ins>
I am <sub>Subscripted text.</sub>
I am <sup>Superscripted text.</sup>