Name
fontStyle — NN n/a IE 4 DOM n/a
Synopsis
Read/Write
Whether the element is rendered in a normal (roman), italic, or
oblique font style. If the fontFamily
includes
font faces labeled Italic and/or Oblique, the setting of the
fontStyle
attribute summons those particular font
faces from the browser’s system. But if the specialized font
faces are not available in the system, the normal font face is
usually algorithmically slanted to look italic. Output sent to a
printer with such font settings relies on the quality of arbitration
between the client computer and printer to render an electronically
generated italic font style. While personal computer software
typically includes other kinds of font rendering under the heading of
“Style,” see fontVariant
and
fontWeight
for other kinds of font
“styles.”
Example
document.all.emphasis.style.fontStyle= "italic"
Value
Internet Explorer 4 recognizes the following string values:
normal
| italic
|
oblique
, but treats both italic
and oblique
as italic.
Default
None.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.