To formatting the text on web page HTML use the following tag.
Now, we write a simple code and show the output.
<html>
<body>
<p>It is an example of <b>Bold Text</b></p>
<p>It is an example of <em>Emphasized Text</em></p>
<p>It is an example of <strong>Strong Text</strong></p>
<p>It is an example of <i>Italic Text</i></p>
<p>It is an example of <sup>super-scripted Text</sup></p>
<p>It is an example of <sub>sub scripted Text</sub></p>
<p>It is an example of <del>struck-through Text</del></p>
<p>It is an example of <code>Computer Code Text</code></p>
</body>
</html>
Example
H2O : H<sub>2</sub>O
A2 : A<sup>2</sup>