<sub> HTML Tag

In this article we will discuss about how to use subscript tag in HTML.
  • 2118

<sub> tag stands for subscript. It is used to define the subscript tag. The subscript tag in HTML put the text just below the baseline. It is used to create the chemistry formulas.

HTML Code:

<html>

<head>

    <title></title>

</head>

<body>

    The formula of water in chemistry is H<sub>2</sub>O.<br>

    The formula of silver dichromate is Ag<sub>2</sub>Cr<sub>2</sub>O<sub>7</sub>.<br>

    The formula of sodium hexachloroaluminate is ALCL<sub>6</sub>Na<sub>3</sub>.<br>

    The formula of aluminium fluoride is Al<sub>2</sub>F<sub>6</sub>.<br>

    The formula of chiolite is Al<sub>3</sub>F<sub>14</sub>

</body>

</html>

 

Output:

The formula of water in chemistry is H2O.
The formula of silver dichromate is Ag2Cr2O7.
The formula of sodium hexachloroaluminate is ALCL6Na3.
The formula of aluminium fluoride is Al2F6.
The formula of chiolite is Al3F14

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2020 DotNetHeaven. All rights reserved.