HTML Tutorial

HTML Tag: <small>

Understanding <small>

The <small> tag in HTML denotes text that should be displayed in a smaller font size than the surrounding text. Commonly utilized for footnotes, fine print, or any content intended to have a secondary emphasis.

Attributes of <small>

No attributes are specifically associated with the <small> tag. Its sole purpose is to modify the font size of enclosed text.

Usage of <small>

To use the <small> tag, simply wrap it around the text you want to display in a smaller font size. For instance:

<small>This text will be displayed in a smaller font size.</small>

Example with <small>

Consider this HTML example:

html
<h1>Main Heading</h1>

<p>This is the main content of the page.</p>

<small>This is a footnote.</small>

In this example, the <small> tag is applied to the footnote. As a result, the footnote text will appear in a smaller font size than the main text.

Tips for Accessibility

  • Avoid using <small> for important information. Use semantic tags like <aside> or <details> instead.
  • Ensure the text size is still readable for users with low vision.
  • Consider providing alternate means of accessing the small text, such as through assistive technologies.