Description
The HTML element <small> is used to define a text with a font size one point smaller than the document's base font size.
In the case of nested <small> elements, the font size is further and further decreased.
The below table summarizes its usage.
| Usage Details | |
| Placement | It is displayed as an Inline element. |
| Contents | It can contain Inline elements and text. |
| Tags | Both the opening and closing tags are required. |
| Versions | HTML 3.2, 4, 4.01, 5 |
Syntax
Here is the basic syntax of the <small> element.
<small>...</small>
Examples
<!DOCTYPE html>
<html lang="en">
<head>
<title>Example - HTML Element small</title>
</head>
<body>
<p>Document Base Font text</p>
<p><small>Small text<small></p>
<p><small><small>Smaller text<small></small></p>
<p><small><small><small>Smallest text</small></small></small></p>
</body>
</html>
Attributes
The following table shows the list of supported and unsupported attributes for the <small> element.
| Attribute Type | Details |
| Element-Specific Attributes | The tag <small> doesn't have any element-specific attributes. |
| Global Attributes | Like all other HTML tags, the tag <small> supports the HTML Global Attributes. |
| Event Attributes | The tag <small> also supports the HTML Event Attributes. |
Browser Compatibility
The tag <small> is supported in all modern browsers.
- Google Chrome 1+
- Internet Explorer or Edge 2+
- Firefox 1+
- Apple Safari 1+
- Opera 4+