- Get link
- X
- Other Apps
- Get link
- X
- Other Apps
how to use subscript tag in html
What is the HTML SubScript tag
html subscript tag is use to display text slightly below the normal line of text. it is commonly use in chemical formulas , mathematical expressions & scientific
Syntax
<sub>Text content</sub>
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.
<!Doctype html>
<!doctype html> always be the first line of any HTML document.
Step 2 ]
<html> and </html>
html is the root element.
<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
<body> and </body>
body is main content area.
All visible content inside to the <body> tagStep 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.
Step 7]
closing the Tag
</body>
</html>
how to use subscript tag in html
Output
Related Post :-

Comments
Post a Comment