HTML Font Tag


The HTML <font> element defines a styling for the text. Size attribute specifies the font size as numeric value from 1 to 7. 1 is the smallest size and 7 is the highest size 3 is the default size.

Example
<font face="Maiandra GD" color="red" size="7" >Sample Text</font>
Try it Yourself

Output:

Sample Text

HTML Background Color

The HTML bgcolor attribute is used to set the background color of an HTML element.

Example
<body bgcolor="blue">
Try it Yourself

Output: