05. Textual Tags
Introduction
Section titled “Introduction”Textual tags are HTML elements used to format and style text within documents. They provide semantic meaning and visual formatting for text content, making it more readable and meaningful. These tags help create well-structured, accessible, and properly formatted text content.
Formatting Tags
Section titled “Formatting Tags”Bold and Strong
Section titled “Bold and Strong”<b>Bold text</b><strong>Important text (semantic)</strong>Italic and Emphasis
Section titled “Italic and Emphasis”<i>Italic text</i><em>Emphasized text (semantic)</em><mark>Highlighted text</mark><small>Fine print or disclaimers</small>Subscript and Superscript
Section titled “Subscript and Superscript”H<sub>2</sub>OE = mc<sup>2</sup>Semantic vs Presentational
Section titled “Semantic vs Presentational”Semantic Tags (Preferred)
Section titled “Semantic Tags (Preferred)”<strong>: Important content<em>: Emphasized content<mark>: Highlighted content
Presentational Tags (Use Sparingly)
Section titled “Presentational Tags (Use Sparingly)”<b>: Bold (no semantic meaning)<i>: Italic (no semantic meaning)