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,
Text to be Bold are written inside the <b> and </b> tags.Syntax
Text to be made italic are written inside the <i> and </i> tags.Syntax
Text to be underlined are written inside the <u> and </u> tags.Syntax
This tag will bold and increase the font size of the given text, text should be written inside the <strong> and </strong> tags.Syntax
The <em> tag is a phrase tag. It renders the given as important.
This tag output is similar to <i> tagSyntax
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.Syntax
Reduce the font size of the given text.Syntax
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.Syntax
Its output is similar to <u> tag.Syntax
This tag is defined as superscripted text.
We can use this for denoting chemistry or maths formula which has power values, like C2.Syntax
This tag is defined as subscripted text.
We can use this for chemistry or maths formula which has base value, like log10.Syntax