The HTML tag specifies superscript text. This is the text that appears at the top of a line of text. The tag represents subscript text. This is the text that appears at the bottom of a line of text.
Most of the time when we come across text it has a traditional baseline and x height.
Everything in this text up to this point in this article has a baseline. This baseline is basically where an underline would appear if we trained it with a and a height of x. The height x is the imaginary line where a lowercase letter ends. It is named after the lowercase x because it fills the space.
In this guide, we will talk about how to define the index and the exponent in HTML. We’ll take a look at an example of each of these text formatting topics so that you can learn how to use them in your code.
When is superscript and subscript text used ?
Are there times when we would like to use characters that are half a character below or above the defined text. Subscripts are characters placed half a character below the text. Quotation marks are characters placed half a character above the text.
In a real environment, we use these characters when we use math equations, chemical equations, quotes or footnotes, for example.
HTML supertext
To create an HTML supertext, use the tag . This tag raises any included text at the top of the line. The sup tag has no tag-specific attributes.
Let’s look at the syntax of this method: