Source Code:
This text contains
subscript
text.
This text contains
superscript
text.
Result:
W3Schools.com
- Try it yourself