August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.tags.tagName.fontFamily
The fontFamily property specifies the font an element should use when associated with the tag called tagName. More than one font can be specified, in case a particular font has not been loaded.
Listing 7.175 uses the fontFamily property to create text with an Arial font. If that font is not available, Helvetica is used.
<html> <script> <!-- Hide //Create a style sheet tag that defines a font document.tags.P.fontFamily = "Arial, Helvetica"; //Hide End ---> </script> <p>Do you like this font?</p> </html> |
Read now
Unlock full access