Just like Microsoft Word has the ability to create subscript and superscript text, the same can be achieved in HTML. The <sub>
and <sup>
tags are a simple addition to your list of tags — they are not included in the CAT curriculum.
In this tutorial:
Required knowledge:
Syntax
HTML Code: | Renders as: |
---|---|
H<sub>2</sub>0 | H2O |
x<sup>2</sup> | x2 |
PAT example
I always suggest that students create a footer with a copyright symbol and their name on all their HTML pages:
<footer> <p><sup>©</sup>Initial Surname</p> </footer>
Next steps
Read the post HTML entities for information on the copyright symbol and more.
Read the post Creating a fixed footer with CSS for more information about creating a footer section for your web pages.