Today let’s get to know two html tags that I don’t use very often: sub tags and sup tags.
Related articles: HTML tags: optgroup, sub, sup and bdo
Today let’s get to know two html tags that I don’t use very often: sub tags and sup tags.
Definition and usage:
The
tag defines subscript text. can define superscript text. They are all inline elements and are slightly smaller than the current font by default.
Example:
sub and sup tags in html
* { font-size:12px; font-family:Tahoma}
This tag is sub
This tag is sup
Draw inferences from one example:
Let