C# Programming: How to use superscript and subscript in html | Learn HTML5

Monday, June 11, 2018

How to use superscript and subscript in html | Learn HTML5





To use superscript in html we use <superscript> tag.

To use subscript in html we use <subscript> tag.



code:

<!DOCTYPE html>

<html>

<head>

<title>Superscript and subscript</title>

</head>

<body>



<p > It is subscript <sub> i am in subscript</sub></p>

<p> X <sup>2</sup> + Y <sup>2 </sup>=10</p>



</body>

</html>

No comments:

Post a Comment