Please visit our sponsors !
The <font> tag
Definition and Usage
The <font> tag specifies the font face, font size, and font color of text.
Tips and Notes
Note: This tag is deprecated in HTML 4.0!!
Tip: Use styles to define the font face, font size, and font
color of text.
Example
| XHTML |
Output |
<font size="3" color="red">
This is some text!
</font>
<font size="1" color="blue">
This is some text!
</font>
<font face="arial" color="red">
This is some text!
</font> |
This is some text!
This is some text!
This is some text!
|
Optional Attributes
DTD indicates in which XHTML 1.0 DTD the attribute is
allowed. S=Strict, T=Transitional, and F=Frameset.
| Attribute |
Value |
Description |
DTD |
| color |
rgb(x,x,x)
#xxxxxx
colorname |
Deprecated. Use styles instead |
TF |
| face |
list_of_fontnames |
Deprecated. Use styles instead |
TF |
| size |
A number from 1 to 7.
If basefont is specified you can specify a number from -6 to 6 |
Deprecated. Use styles instead |
TF |
Standard Attributes
| id, class, title, style, dir, lang, xml:lang |
For a full description, go to Standard
Attributes.
Event Attributes
NONE.
Jump to: Top of Page
or HOME or
Printer friendly page
Search W3Schools:
What Others Say About Us
Does the world know about us? Check out these places:
Dogpile
Alta Vista
MSN
Google
Excite
Lycos
Yahoo
Ask Jeeves
We Help You For Free. You Can Help Us!
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2002 by Refsnes Data. All Rights Reserved
|