HTML Text Formatting
HTML contains several elements for defining text with a special meaning. Formatting tags give text visual cues that usually align with their semantic meaning.
Highlighting & Size
The <mark> element defines text that should be marked or highlighted. The <small> element defines smaller text, often used for copyright notices or side comments.
Deletions & Insertions
The <del> element defines text that has been removed from a document (rendered as a strike-through). The <ins> element defines a text that has been added (rendered as underlined).
Subscript & Superscript
The <sub> element defines subscript text (like H2O). The <sup> element defines superscript text (like E=mc2).
View Full Transcript+
This section contains the detailed usage for mark, small, del, ins, sub, and sup tags. It emphasizes the importance of using these tags for their semantic meaning rather than just for visual styling, which should ideally be handled by CSS.
