<small>
<small>
Tag
The <small>
tag is used to decrease the font size of text relative to surrounding content. It is commonly applied to fine print, disclaimers, or supplementary details that should be visible but less prominent.
Syntax
<small>Smaller Text</small>
<small>
Demo
This is a regular paragraph. This text is smaller.
<p>
This is a regular paragraph. <small>This text is smaller.</small>
</p>
<small>
tag is still valid, but CSS can be used to achieve the same effect or more advanced styling.Attributes
The <small>
element supports global attributes.
Key Points
- Visual Effect: Reduces text size compared to surrounding content.
- Semantic Meaning: It only affects appearance and does not alter the meaning of the text.
- Use Case: Often used for secondary details such as disclaimers, copyright notices, or annotations.
See Also
<b>
- Used for bold text.<sub>
and<sup>
- Used for subscript and superscript text.<font>
- A deprecated tag for styling text.<style>
- Used for applying CSS styles.
Conclusion
The <small>
tag is a simple way to make text appear smaller, often used for less prominent content like disclaimers or copyright information. While CSS provides more control over text styling, <small>
remains useful for quick and consistent formatting.
<samp>
The HTML <samp> element is used to indicate sample output from a computer program or system, typically shown in a monospace font to represent code or results from commands.
<strike>
The HTML <strike> element, now deprecated, was intended to show text with a strikethrough effect to indicate irrelevance; modern practices use CSS to achieve similar visual outcomes.