HTML <sub> tag is used to define subscript text. Subscript text appears slightly below the normal line of text and is often used in chemical formulas, mathematical expressions, or for other types of annotations.
HTML sub tag with example
<!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Subscript with Example</title> </head> <body> <h1>Subscript with Examples</h1> <!-- Example 1: Chemical formula --> <p>Chemical Formula: H<sub>2</sub>O.</p> </body> </html>