Sup> tag in html

    use of sub tag in html
    why we use sub tag in html
    why we use section tag in html
    what is section tag in html
  • Use of sub tag in html
  • Del> tag in html

  • Del> tag in html
  • Sub and sup> tag in html example
  • Sub and sup tag in html
  • Html superscript 2
  • Sub in html
  • Sub and sup tag in html...

    HTML <sub> Tag

    The <sub> tag in HTML is used to define subscript text, which appears smaller and slightly below the normal text baseline. It is commonly used for mathematical expressions, chemical formulas, and footnotes, like in H₂O (water) or E=mc² (Einstein’s equation).

    Syntax

    <sub> Contents.

    . .

    Ins tag in html

    </sub>

    There are no such attributes that apply specifically to this <sub> tag. The attributes that only apply to this tag are global attributes.

    Example 1: In this example, the <sub> tag is used to create subscript text.

    The “2” in the chemical formula “H₂O” is displayed as smaller and slightly lower than the baseline, indicating the number of hydrogen atoms.

    Output:

    Example 2: In this example the <sub> tag is used to display subscript text.

    It renders the “n” in the mathematical expression “xₙ + yₙ” smaller and below the baseline, indicating a variable’s subscript.

    Output:

    Supported Browsers:

    HTML <sub> tag-FAQs

    What is the difference between &

      what does the section tag do in html
      sub tag in html example