Welcome to HTML5-Tutorials

Our site offers a lot of HTML5 learning from absolutely beginning to advanced level.If you want to make a website with HTML,this site will completely guide you a lot.So learn HTML5 syntax and form of coding easily with this website.If you have any doubt,leave a message on us.We will return you so soon.This site includes innumerable number of references you need to do after studying their corresponding elements.

In this page,we will learn about HTML <sub> tag.

Use of <sub> tag

The <sub> tag is used to define subscript texts.
Subscript texts are normally rendered with lowered baseline and smaller texts like 2 in H2O.


Example of <sub> tag

H<sub> 2 </sub>O

Supported Browsers.

<sub> Yes Yes Yes Yes Yes

Full Code Example

<!DOCTYPE html>
The chemical formula of water is H<sub>2</sub>O.


The chemical formula of water is H2O.

More Reference

The <sub> tag is mostly used in writing the chemical formula like H2O.
It also uses in writing variable scripts like x1,x2,........,xn,

Default CSS properties of <sub> tag

sub {
     vertical-align:sub;Or vertical-align:-25%;