Superscript and subscript : sup « Tags « HTML / CSS






Superscript and subscript

   

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>Superscript and subscript</title>
</head>

<body>

  <p>a<sup>2</sup> + b<sup>2</sup> = c<sup>2</sup></p>

  <p>H<sub>2</sub>SO<sub>4</sub></p>

</body>
</html>

   
    
  








Related examples in the same category

1.To superscript text use sup tags
2.vertical alignment for sub super
3.'sup' Example