+ 5
What is the difference between sub & sup? Why we use those tag?
7 Respuestas
+ 8
use Code playground to see the difference.
sup helps for example to create footnotes.
sub helps for example to create chemical formulas.
+ 1
For example...you want to write H(square)O...then use sup. and H2O (water) then use sub. 😃
+ 1
<html>
<head>
<title>Первая страница</title>
</head>
<body>
<p>Обычный текст</p>
<p><b>Текст жирным шрифтом</b></p>
<p><big>Текст крупным шрифтом</big></p>
<p><i>Текст курсивом</i></p>
<p><small>Текст мелким шрифтом</small></p>
<p><strong>Важный текст</strong></p>
<p>this is <sub>Подстрочный текст</sub> diffirent </p>
<p>and this is <sup>Надстрочный текст</sup> diffirent </p>
<p><ins>Вставленный текст</ins></p>
<p><del>Удаленный текст</del></p>
</body>
</html> (Use this code to understand
0
For example we have to write H2O then we use subscript and if we have to raise some number to power like x^2 then we superscript
0
That is the language that the robot understand
0
The <sup> tag defines superscript text. Superscript text can be used for footnotes.
The <sub> defines subscript text.Subscript text can be used for chemical formulas.
- 1
example: a sub 0 = a not (with 0 in foot of a)
a sup 0 =1 (power of a is 0 here)
hope this helps..