Tutorial 23: The Font of Foulness, Part II: Many Faces, Many Colors - HTML with Style | 4 | WebReference

Tutorial 23: The Font of Foulness, Part II: Many Faces, Many Colors - HTML with Style | 4

index1234

Tutorial 23: The Font of Foulness, Part II: Many Faces, Many Colors

The FACE attribute

The last use of the FONT element is to change the font face. The first thing that this illustrates is that publishing terminology is in dire need of standardization since "font face" in this case means the same thing as "font family" in CSS-speak. The fact that most people simply use the word "font" when referring to the same thing makes things even more complicated.

The FACE attribute to the FONT element has the same syntax as the font-family property in CSS, and the same function: It picks a the first available font family out of a list. Replacing it with CSS is a simple enough task. Take the following example, for instance:

<P><FONT 
          FACE="Verdana, Arial, Helvetica, sans-serif">This 
should be a nice sans-serif font.</FONT></P>
<P 
STYLE="font-family: Verdana, Arial, Helvetica, sans-serif">This
should also be a nice sans-serif font.</P>

This should be a nice sans-serif font.

This should also be a nice sans-serif font.

If you don't remember the font-family property, you can refresh your memory by taking another peek at the relevant section in Tutorial 7.

index1234

http://www.internet.com/

Legal Notices.

URL: http://www.webreference.com/html/tutorial23/3.html

Produced by Stephanos Piperoglou
Created: June 29, 2000
Revised: June 29, 2000