Skip to content

05. Textual Tags

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.

<b>Bold text</b>
<strong>Important text (semantic)</strong>
<i>Italic text</i>
<em>Emphasized text (semantic)</em>
<mark>Highlighted text</mark>
<small>Fine print or disclaimers</small>
H<sub>2</sub>O
E = mc<sup>2</sup>
  • <strong>: Important content
  • <em>: Emphasized content
  • <mark>: Highlighted content
  • <b>: Bold (no semantic meaning)
  • <i>: Italic (no semantic meaning)