HTML | <font> size Attribute
The HTML <font> size Attribute is used to specify the size of text which is present inside <font> element.
Syntax:
<font size="number">
Attribute Values: It contains single value number which specifies the size of text. The font size lies between 1 to 7. The default value of font size is 3.
Note: The <font> size attribute is not supported by HTML 5.
Example:
<!DOCTYPE html> <html> <head> <title>HTML font size Attribute</title> </head> <body> <font size="1">GeeksforGeeks!</font> <br /> <font size="2">GeeksforGeeks!</font> <br /> <font size="3">GeeksforGeeks!</font> <br /> <font size="4">GeeksforGeeks!</font> <br /> <font size="5">GeeksforGeeks!</font> <br /> <font size="6">GeeksforGeeks!</font> <br /> <font size="7">GeeksforGeeks!</font> </body> </html> |
Output:

Supported Browsers: The browser supported by HTML <font> size attribute are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Safari
- Opera
Recommended Posts:
- HTML | size Attribute
- HTML | <hr> size Attribute
- HTML | <input> size Attribute
- HTML | <basefont> size Attribute
- HTML | <select> size Attribute
- HTML | <li> value Attribute
- HTML | for Attribute
- HTML | value Attribute
- HTML | min Attribute
- HTML | low Attribute
- HTML | dir Attribute
- HTML | <map> name Attribute
- HTML | <a> rel Attribute
- HTML | <img> src Attribute
- HTML | <img> alt Attribute
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



