xxxxxxxxxx
<html>
<head>
<style>
sub {
vertical-align: sub;
font-size: smaller;
color: red;
font-style: arial;
font-weight: bold;
}
</style>
</head>
<body>
<h1>How to Style sub element example</h1>
<p>You can style the <code>sub</code> element by targeting the element with CSS declarations.</p>
<p>H<sub>2</sub>O</p>
</body>
</html>