ad

Tuesday, November 11, 2025

how to use subscript tag in html

how to use subscript tag in html

web designing Theory  website

how to use subscript tag in html
Example 

<!DOCTYPE html>
<html>
 <body>
  <h2> how to use subscript tag in html</h2>
<p>student learn <sub> HTML </sub> programming language</p>
    <p> Student learn <sub>CSS</sub> Programming language</p>

 </body>

</html>

how to use subscript tag in html
Explain Program

Step 1 ]

<!Doctype html>

<!doctype html>  always be the first line of any HTML document.

Step 2 ]

   <html> and </html>

   html  is the root element.

Step 3 ]

<body> and </body>

body  is  main content area.

All visible content inside to  the <body> tag

Step 4]

<h2> how to use subscript tag in html</h2>

<h2>  display title create second-level heading  bold  larger text.</h2>

Step 5]

<p>student learn <sub> HTML </sub> programming language</p>
    <p> Student learn <sub>CSS</sub> Programming language</p>

each <P> tag defines  paragraph text.

inside each <p>  tag is a subscript tag (<sub> tag).

Step 6]

<p> Student learn <sub> HTML </sub> programming language</p>

Sub tag  

the <sub> tag is use to display text slightly  below the normal line is subscript tag.
commonly use chemical formulas , mathematical expression 

HTML word appear as subscript tag  a bit lower and smaller than surrounding text.

<p> Student learn <sub> CSS </sub> programming language</p>

CSS word appear as subscript tag  a bit lower and smaller than surrounding text.

how to use subscript tag in html
Output

how to use subscript tag in html


Related Post :-



No comments:

Post a Comment