HTML small Tag
The <small> tag in HTML is used to set small font size.
Syntax:
<small> Contents... </small>
Example 1:
HTML
< html > < body > < h1 >GeeksforGeeks</ h1 > < h2 >< small > Tag</ h2 > <!-- html small tag is used here --> < small >Welcome to GeeksforGeeks!</ small > </ body > </ html > |
Output:
Example 2: Use CSS property to set the font size smaller.
HTML
<!DOCTYPE html> < html > < head > < title >small Tag</ title > < style > body { text-align:center; } h1 { color:green; } .gfg { font-size:smaller; } </ style > </ head > < body > < h1 >GeeksforGeeks</ h1 > < h2 >font-size: smaller;</ h2 > < div class = "gfg" >Welcome to GeeksforGeeks!</ div > </ body > </ html > |
Output:
Supported Browsers:
- Google Chrome
- Internet Explorer
- Firefox
- Safari
- Opera