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
Mandrake Linux Founder Back, Virtually
Amazon: We're a Technology Company
Sun Expands MySQL With Closed Source

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.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

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

webref The latest from WebReference.com Browse >
Working with the DOM Stylesheets Collection · Administering RBAC in PHP 5 CMS Framework · xref: Automatic Cross Referencing Script
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Combine BottomCount() with Other MDX Functions to Add Sophistication · Creating a Daemon with Python · The Coming Voice-over-WiMAX Revolution

Legal Notices.

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

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