HTML5, CSS3, and JavaScript Fourth Edition

(Ben Green) #1

CHAPTER 10. FONT FAMILIES 108


Google search “commonly available fonts” to see what your users probably
have available.


Commonly available fonts include Arial, Verdana, Georgia, and Times New
Roman, but even these tend to vary by browser and platform.


Here are some resources you can look at to find the commonly available
fonts for various platforms.


http://www.ampsoft.net/webdesign-l/WindowsMacFonts.htmlgives a ta-
ble of fonts showing their names under Windows, under Mac, and under their
generic family.


http://www.w3schools.com/cssref/css_websafe_fonts.aspgives some
examples of font stacks for serif, sans-serif, and monospace characters.


http://webdesign.about.com/od/fonts/a/aa080204.htmhas advice about
choosing fonts.


Exam Question 192(p.347): In font names, does capitalization matter?
Required Answer:no


Spelling: Font names must be spelled exactly correctly. However, capi-
talization does not matter in font names. (It frequently matters in other
places.)


Spaces:If a font name has any spaces in it, the whole name must be given
in quotes.


Exam Question 193(p.347):In font family specs, what font should always
be included?
Required Answer:generic


Exam Question 194(p.347):In font family specs, what font should always
be listed last?
Required Answer:generic


Generic:The last font in each list should be one of the five generic fonts:
serif, sans-serif, cursive, fantasy, or monospace.


Like all CSS attributes, the font family specification ends with;(a semi-
colon).

Free download pdf