[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
HTMLSPEC-FONT

Font

Usage

Used 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

last edited (April 12, 2004) by leeos, Number of views: 1438, Current Rev: 4 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.