• 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

How to write formulas in html

HTML Sup Tag

August 12, 2013 by techhoneyadmin

HTML Supersctipt TagHTML Superscript Tag <sup> is used to define a superscript text in HTML.

A Superscript text appears to be half a character above the normal character top.

Superscript Tag <sup> is used to write formulas e.g. e=mc2 or 22=4.

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


Syntax of HTML Superscript Tag

<sup>
Some formula here..
</sup>

Example of HTML Superscript Tag

HTML Superscript Tag Code Output

 Einstein’s Equation for Mass Energy Equivalence is:

E=mc<sup>2</sup>
Einstein’s Equation for Mass Energy Equivalence is:E=mc2

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

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


HTML Superscript 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 Sup Tag, HTML Superscript, HTML Superscript Tag, HTML tag Superscript, Html writing chemical formulas, HTMLSupTag, Superscript HTML, Superscript HTML Tag, Superscript in html, Superscript tag HTML, Syntax and Example of Superscript html tag, Tag HTML Superscript, Tag Superscript HTML, Use of html Superscript tag, Using html Superscript tag, What is the use of html Superscript 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 © 2025 · Parallax Pro on Genesis Framework · WordPress · Log in