To add superscript (raised) text or subscript (lowered) text inside a heading, you can use <sup> and <sub>.
Source Code:
<!DOCTYPE html>
<html>
<head>
<title>Using <sup> and <sub> Tags</title>
</head>
<body>
<h4>The 10<sup>th</sup> floor is at the top.</h4>
<h5>The chemical formula for water is H<sub>2</sub>O.</h5>
</body>
</html>Result:
Watch the video:


