![]() |
|
Working with the basefont Tag, Free online HTML Tutorial, Learn HTML online for free... |
| Lessons | Basefont Tag |
|
|
<basefont> tag solves our above problem. The <basefont> tag can be used to control the font face, color and size of a web page's text. When you use <basefont> tag to set the default text properties, you can always use <font> tag to switch to another font and when you close the </font> tag, the properties you set with the <basefont> are applied again, automatically. <basefont> tag has no closing tag. In current day's browsers this tag works fine, no matter whereever you use it. However, it is recommended that you use this tag anywhere before <body> tag. Example: <basefont color="pink" size="5" face="Courier New, Courier, mono"> The above code sets the default text color to pink, its size to 5 and the font face is set to Courier New, Courier, mono. You can play with <basefont> tag's color, face and size attributes.
Next >>> Lesson No. 7: The Body Tag
|