5.5. Font Properties

CSS1 gives the author control over several aspects of the font: whether the font is bold, italic, or normal, what size to use, what font families are preferred, and whether a small-cap variation should be used. Netscape also supports dynamic fonts, which let you attach a font definition file to a document rather than depending on certain fonts already being on the client system. Underlined text, subscripts, and superscripts are not set by these font properties but rather by the text-decoration and vertical-align properties, covered in Section 5.7 (Text Properties). In Sections 5.5 through 5.10, the style values are listed immediately after the style declaration, with the default value indicated in bold.

font-weight

normal ...

Get Core Web Programming, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.