HTML small Tag
The <small> tag in HTML is used to set small font size. It decreases the font size by one size (from medium to small, from x-large to large). It has a display property of inline.
<small> Contents... </small>
There are basically two ways in which you could use this <small> tag.
i) In a nested form: When you use the <small> tag in a nested form then the <small> tag will going to change the font size of the text in between it with respect to the parent element’s font size which means changing text with respect to its surroundings.
But when we increase the font size of the parent element, the <small> tag will automatically increase the font size of its text as well.
It means that the ratio between the font size of the nested <small> tag text and the parent element's text is same.
ii) In a non-nested form: If the <small> tag is used as a separate element in the HTML document, then changing the font size of any element will not going to affect the font size of the <small>tag text.
But if we change the font size of the paragraph, it will not affect the font size of the <small> tag text.
Example 2: Use CSS property to set the font size smaller.
- Google Chrome
- Edge 12 and above
- Internet Explorer
- Firefox 1 and above
Please Login to comment...