HTML - how to create subscript and superscript text

To create subscript and superscript text in HTML, use the <sub> and <sup> tags.


This is subscript


 <html>
     This is <sub>subscript</sub>
 </html>
 

This is superscript


 <html>
     This is <sup>superscript</sup>
 </html>
 

This article demonstrates sub and super with HTML tags, but you can also use CSS.



Ads by Google

Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath