Face Attribute Example – HTML Syntax – Face Attribute Example

Face Attribute Example – HTML Syntax – Face Attribute Example

Purpose: – Illustrates the for the .

You can download an excellent free html editor at nvu. This HTML editor will allow you to easily experiment with these examples. You can view an 8-minute video tutorial that I did at NVU HTML Editor

Function: face=”typeface” or face=”list of typefaces” Specifies typeface for text. The specified typeface will only be used if it is found on users computer. When a list is specified, the first typeface that is available will be used.

View List of Font Faces

View Example In Browser

< !DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>Font Face Example</title>
</head>
<body>
<p>
<font face="Georgia,Verdana, Arial, Helvetica, sans-serif" size="4">Font
Faces</font></p>
<p>The following 12 font faces are
installed on the mac and the pc and are considered "safe"</p>
<p><font face="arial">arial</font>,
<font face="arial black"><nobr>arial
black</nobr></font>,
<font face="comic sans ms"><nobr>comic
sans ms</nobr></font>,
<font face="courier">courier</font>,
<font face="courier new"><nobr>courier
new</nobr></font>,
<font face="georgia">georgia</font>,
<br />
<font face="helvetica">helvetica</font>,
<font face="impact">impact</font>,
<font face="palatino">palatino</font>,
<font face="times new roman"><nobr>times
new roman</nobr></font>,
<font face="trebuchet ms"><nobr>trebuchet
ms</nobr></font>,
<font face="verdana">verdana</font>
</p>
 
</body>
</html>