ad

Thursday, December 18, 2025

what is HTML sup tag

What  is HTML  sup tag

Syntax 

 Syntax of HTML <sub>. . .</ tag


   <p> H <sub> 2 </sub> O </p>  

  html <sub> tag mean  :-  Subscript text 

html <sub> tag  use      :-   text display appears slightly normal text line
 
 what  is HTML  sup tag

Example

<!DOCTYPE html>
  <html>
    <head>
        <title> HTML superscript tag </title>
    </head>
    <body>
        <h1> Learn html supscript tag</h1>
     
   <h3>learn  Free <sub>HTML supscript tag</sub>
webdesigningtheory.blogspot.com</h3>

    </body>
   </html>


what  is HTML  sup tag

Explain Program

Step  1] 

<!DOCTYPE html>

  • This declare the document type.
  • browser that the document is written in html

Step 2 ]

<html>.... . </html>

  • html is the root element of the html page.
  •  Every thing inside it is part of the webpage.

Step 3]

<head>
        <title> HTML superscript tag </title>
</head>


  •   <head>  section 
  •   head section contains metadata about page. not visible on the page itself.
  •  <title> tag  title section set the title of the page shows the browser tab.

Step 4]

<body>
        <h1> Learn html subscript tag</h1>
     
<h3>learn Free <sub> HTML subscript tag
</sub> webdesigningtheory.blogspot.com  </h3>

    </body>

  • HTML <h1> tag large  heading use main title of webpage
  •  HTML <h3> tag  smaller heading than <h1>
  • inside HTML <h3> tag    there<sub> tag.
  • HTML <sub> tag display text subscript  appears below normal text line.
  • example (H2 ->  2 is subscript tag use

what  is HTML  sup tag

Output

Learn html supscript tag


Related Post :-

how to set image height

html link tag explain

how to use pre tag