August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.classes.className.tagName.fontStyle
The fontStyle property specifies the font style used by an element when associated with the class called className. The definition can also specify a tag or the word all for tagName.
The fontStyle property can be assigned one of the following values: normal or italic.
Listing 7.75 uses the fontStyle property to italicize the header text.
<html> <script> <!-- Hide //Create a style sheet class that defines a font style document.classes.I.all.fontStyle = "italic"; //Hide End ---> </script> <h2 class=I>Italicized Heading</h2> </html> |
Read now
Unlock full access