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>
Subscript
To make any characters or part of text, we have to use the tag <sub>. Everything is similar to the case of superscript, except that the tag is sub instead of sup. Suppose we have to display An-1. To display it, we have to use the following code:
A<sub>n-1</sub>
We should enclose the characters to be made subscript in <sub> and </sub>
Information about resetting and configuring Mobile phones (Java, Android, Symbian etc), educational articles especially for programming in C, C++ and Java and more about Computers and operating systems
No comments :
Post a Comment