Example of HTML subscript and superscript - HTML CSS HTML

HTML CSS examples for HTML:Text Format

Description

Example of HTML subscript and superscript

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html lang="en">
 <head> 
  <title>Example of HTML subscript and superscript</title> 
 </head> <!--from  w w  w. j a  v  a  2  s.  c o  m-->
 <body> 
  <p>Water is: H<sub>2</sub>O</p> 
  <p>Carbon Dioxide is: CO<sub>2</sub></p> 
  <p>Mass-energy equivalence is: E=mc<sup>2</sup></p>   
 </body>
</html>

Related Tutorials