Text Formatting Tags
There are tags in HTML which can be used to change or add styles to the text which appears in the web page.
These tags are collectively called Text Formatting tags.
The Text Formatting tags are explained below,
<b> Tag (Bold)
Text to be Bold are written inside the <b> and </b> tags.
<i> Tag (Italic)
Text to be made italic are written inside the <i> and </i> tags.
<u> Tag (Underline)
Text to be underlined are written inside the <u> and </u> tags.
This tag will bold and increase the font size of the given text, text should be written inside the <strong> and </strong> tags.
<em> Tag (Emphasized text)
The <em> tag is a phrase tag. It renders the given as important.
This tag output is similar to <i> tag
This tag is used to mark the specific text in a sentence or paragraph.
When you write text inside the <mark> tag, it will mark it with yellow color.
Reduce the font size of the given text.
<del> Tag (Delete)
This will display the text in deleted format, such as a line will be crossed over the given text.
Usually this is used to specify the discount price.
Its output is similar to <u> tag.
<sup> Tag (superscripted)
This tag is defined as superscripted text.
We can use this for denoting chemistry or maths formula which has power values, like C2.
<sub> Tag (subscripted )
This tag is defined as subscripted text.
We can use this for chemistry or maths formula which has base value, like log10.