From the course: HTML Essential Training

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

HTML and typography

HTML and typography

- When writing HTML, the main rule is to use tags that describe what the content means, not how it looks, but there are a few HTML tags that are used for specific typographical styles, like superscript or subscript. This may seem to contradict the semantics over presentation rule, but these tags are okay to use as long as you use them to follow standard writing practices. For example, footnotes are notations marked with symbols or numbers, which correspond to additional information added to the bottom of the page. On the web, they're commonly used on sites requiring citations or providing supplementary details. These notations are usually formatted as superscript, using the SUP tag. The text will be displayed with a smaller size and a raised baseline. There are also sub elements to display text as subscript, which will also display as smaller text, but with a lowered baseline. Let's talk about one more element that can be used to further define your text content, the small element…

Contents