Typography on the Web 43
PrinciplesWeb Design
Typography on the Web
Web Design in a Nutshell, eMatter Edition
- Keyboard entry
Sample text
Example text
Again, because most people do not change the default font settings in their
browser preferences, you can make a reasonable guess that text marked with the
above HTML tags will be displayed in some variation of Courier.
Text in Graphics
Designers quickly learned that the sure-fire way to have absolute control over font
display is to set the text in a graphic. It is common to see headlines, subheads,
and call-outs rendered as GIF files. Many web pages are made up exclusively of
graphics that contain all the text for the page.
GIF text advantages
The advantage to using graphics instead of HTML text is fairly obvious—control!
- You can specify text font, size, leading, letter spacing, color, and alignment—
all attributes that are problematic in HTML alone. - Everyone with a graphical browser will see your page the same way.
GIF text disadvantages
As enticing as this technique may seem, it comes with many drawbacks. Keep the
following disadvantages in mind when deciding whether to use graphics for your
text.
- Graphics take longer to download than text. Graphics are likely to be many
orders of magnitude larger than HTML text with the same content, and will
result in slower downloads. - Content is lost on nongraphical browsers. People who cannot (or have cho-
sen not to) view graphics will see no content. Alternative text (using thealt
attribute) in place of graphics helps, but is limited and not always reliable. - Information in graphics cannot be indexed or searched. In effect, by putting
text in a graphic, you are removing useful pieces of information from your
document. Again, thealt attribute helps here.
Why Specifying Type is Problematic
Thetag’sfaceattribute and Cascading Style Sheets give web designers an
added level of control over typography by enabling the specification of fonts and
sizes. Although it is a step in the right direction, using these tags by no means
guarantees that your readers will see the page exactly the way you’ve designed it.
Specifying fonts and sizes for use on web pages is made difficult by the fact that
browsers are limited to displaying fonts that are installed on the user’s local hard
drive. So, even though you’ve specified text to be displayed in the Georgia font, if
users do not have Georgia installed on their machines they will see the text in