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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access