How to set smaller text using HTML5 ?
In this article, we will set a smaller text by using a <small> tag Element in The Document. This tag in HTML is used to set small font sizes.
Syntax:
<small> Content... </small>
Example 1:
html
<!DOCTYPE html> < html > < head > < title > How to set smaller text using HTML5 ? </ title > < style > body { text-align: center; } h1 { color: green; } </ style > </ head > < body > < h1 >w3wiki</ h1 > < h2 > HTML5: How to define smaller text? </ h2 > < small > Welcome to w3wiki! </ small > </ body > </ html > |
Output:
Supported Browsers:
- Google Chrome
- Internet Explorer
- Firefox
- Opera
- Safari