• Skip to primary navigation
  • Skip to main content

Tech Honey

The #1 Website for Oracle PL/SQL, OA Framework and HTML

  • Home
  • HTML
    • Tags in HTML
    • HTML Attributes
  • OA Framework
    • Item in OAF
    • Regions in OAF
    • General OAF Topics
  • Oracle
    • statement
    • function
    • clause
    • plsql
    • sql
You are here: Home / HTML / Tags / HTML Sub Tag

HTML Sub Tag

August 12, 2013 by techhoneyadmin

HTML Subscript Tag`HTML Subscript Tag <sub> is used to define subscript text in HTML.

A Subscript text appears to be half a character below the normal character base.

HTML Subscript Tag <sub> is used to write chemical formulas e.g. O2, H2O etc.

HTML Subscript Tag is a closed tag and hence needs to be closed using the closing Subscript HTML Tag </sub>.


Syntax of HTML Subscript Tag

<sub>
Some formula here..
</sub>

Example of HTML Subscript Tag

HTML Subscript Tag Code Output
The Chemical formula of Water is:H<sub>2</sub>O
The Chemical formula of Water is:H2O

Here in the HTML Subscript tag example above we can see that the “2” in
H2O comes as a Subscript and that’s the use of Subscript HTML tag.

HTML Subscript Tag Supports all HTML Global Attributes and HTML Event Attributes.


HTML Subscript Tag Supporting Browsers

S. No. Browser Supported(Yes/No)
1 Internet Explorer Yes
2 Firefox Yes
3 Google Chrome Yes
4 Opera Yes
5 Safari Yes

Filed Under: Tags Tagged With: How to write chemical formulas in html, How to write formulas in html, HTML Sub Tag, HTML Subscript, HTML Subscript Tag, HTML tag Subscript, Html writing chemical formulas, HTMLSubTag, Subscript HTML, Subscript HTML Tag, Subscript in html, Subscript tag HTML, Syntax and Example of Subscript html tag, Tag HTML Subscript, Tag Subscript HTML, Use of html Subscript tag, Using html Subscript tag, What is the use of html Subscript tag

Copyright © 2023 · Parallax Pro on Genesis Framework · WordPress · Log in