[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
HTMLSPEC-FONT
Used to specify the size, color, and font face style for character text in a web document.
Attributes
Specifies the size of internal text in either pixel values ranging from 1 to 7 (largest) or relative values ( +1, -1, +2, -2,...) which changes the size in relation to the current font size.
Specifies the color of internal text. #hexColor must be a valid hexadecimal value representing the color to be used as usual.
Specifies the font of internal text or possibly several fonts separated by a comma (if first font is not available, second will try, and so on).
Code Tip
When specifying face attribute values, be sure to choose standard font types and stray away from unpopular, graphical font types. Visitors that do not have the specified font types on their machines could result in seeing unreadable browser text.
Live Example
HTML Tags Center
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
HTMLSPEC-FONT
Font
UsageUsed to specify the size, color, and font face style for character text in a web document.
Attributes
size="#"
Specifies the size of internal text in either pixel values ranging from 1 to 7 (largest) or relative values ( +1, -1, +2, -2,...) which changes the size in relation to the current font size.
color="#hexValue"
Specifies the color of internal text. #hexColor must be a valid hexadecimal value representing the color to be used as usual.
face=""
Specifies the font of internal text or possibly several fonts separated by a comma (if first font is not available, second will try, and so on).
Code Tip
When specifying face attribute values, be sure to choose standard font types and stray away from unpopular, graphical font types. Visitors that do not have the specified font types on their machines could result in seeing unreadable browser text.
Live Example
<html> <head><title>Font Properties Document Example</title></head> <body> <font face="times new roman, arial" color="#FF000" size="2pt">Times New Roman 2pt size in Orange Color</font> <br> <br> <font face="arial, times new roman" color="#00000" size="+1">Arial +1Rel. Size in Black Color</font> </body> </html>
HTML Tags Center
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
