Showing posts with label terms. Show all posts
Showing posts with label terms. Show all posts

How To Make a Text Subscript or Superscript Using HTML Code

To make a text superscript or subscript in a webpage using HTML language, there are two tags provided in the language.

Superscript

To make a text or some characters superscript, the HTML tag <sup> is used. For example, suppose we have to display 2n+1. To display it, we have to use the following code:

2<sup>n+1</sup>

We have to enclose the characters to be made superscript in <sup> and </sup>