Last Updated on April 26, 2023 by Roshan Parihar
HTML font tag is used to specify the base font, color, size and font family for a website.
The specifications define by font tag is applied to all the pages of a website.
Syntax
1 2 3 4 5 6 7 8 9 10 |
<!DOCTYPE html> <html> <head> <title>This is the main title</title> <font face="sans-serif" color="#ccc" size="12"></font> </head> <body> put body content here... </body> </html> |
HTML font tag attributes
Sr. No. | atribute options | Description |
---|---|---|
1 | face | Used to specify the base font family for all the pages of the website. |
2 | size | Used to specify the base size for all the pages of the website. |
3 | color | Used to specify the base color for all the pages of the website. |