HTML <small>
Tag Tutorial
The HTML <small>
tag is used to define smaller text.
Example:
<p>This is a paragraph with some <small>small text</small> in it.</p>
Attributes of the <small>
Tag:
Attribute | Description |
---|---|
style | Specifies the inline style for an element |
class | Specifies one or more class names for an element (refers to a class in a style sheet) |
id | Specifies a unique id for an element |
Here is an example of how to use the <small>
tag with attributes:
<p>This is a paragraph with some <small style="color: red;" id="small-text">small text</small> in it.</p>
Result:This is a paragraph with some small text in it.