spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / html / tutorials / 23 / 3

index1234

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

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

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/

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business

Legal Notices.

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

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