How to set smaller text using HTML5 ?
Last Updated :
01 Jun, 2022
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 >GeeksforGeeks</ h1 >
< h2 >
HTML5: How to define
smaller text?
</ h2 >
< small >
Welcome to GeeksforGeeks!
</ small >
</ body >
</ html >
|
Output:
Supported Browsers:
- Google Chrome
- Internet Explorer
- Firefox
- Opera
- Safari
Share your thoughts in the comments
Please Login to comment...