Skip to content

Ebhor.com

Knowledge Never Sets

  • Web Technologies
    • HTML
    • CSS
    • JavaScript
    • JQuery
    • Bootstrap
  • PHP
  • Java Technologies
    • Java Basics
    • Java Applets
    • Java Threadnig
    • Java IO
    • Jsp Servlet
    • Struts1
    • Struts2
    • Spring
    • Hibernate
  • Database
    • MySql
  • Basic Programming
    • C Programming
    • C++ Programming
  • Unix
  • Mathematics
  • Tools
    • Hash Generator
    • Password Generator

HTML Subscript and Superscript tags

To show data in subscript and in superscript format we use <sub>..</sub> and <sup>..</sup> tags.

1
2
X<sup>2</sup>+Y<sup>2</sup>
H<sub>2</sub>O

Example:

Output:

X2+Y2
H2O

Categories html Tags subscript, superscript
Post navigation
HTML Bold Italic & Underline Tags
Replacing content of div using .replaceWith()
  • HTML 5 Document Structure
  • HTML head tag
  • HTML Heading Tags
  • HTML Bold Italic & Underline Tags
  • HTML Anchor tag
  • HTML br tag
  • HTML hr tag
  • HTML Image tag
  • HTML Paragraph tag
  • HTML pre tag
  • HTML Subscript and Superscript tags
  • HTML List
  • HTML table tag
  • HTML Table rowspan and colspan
  • About Us
  • Contact Us
  • Thanks to
  • Careers
  • Disclaimer
  • Careers
  • Disclaimer
  • Log In
  • Register
© 2021 Ebhor.com • Built with GeneratePress