Taking Your Talent To The Web
Taking Your Talent To The Web
Taking Your Talent To The Web
Taking Your
Talent to the
Web
A Guide for the Transitioning Designer
By Jeffrey Zeldman
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
00 0732 FM 4/24/01 1:38 PM Page ii
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
00 0732 FM 4/24/01 1:57 PM Page iii
Contents at a Glance
Introduction 1
Index 403
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
00 0732 FM 4/24/01 1:57 PM Page iv
Table of Contents
Introduction 1
1 Splash Screen 5
Meet the Medium 6
Expanding Horizons 7
Working the Net…Without a Net 9
Smash Your Altars 11
iv
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
00 0732 FM 4/24/01 1:38 PM Page v
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
00 0732 FM 4/24/01 1:38 PM Page vi
vi
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
00 0732 FM 4/24/01 1:38 PM Page vii
2000 121
The year web standards broke, 1 121
The year web standards broke, 2 122
The year web standards broke, 3 122
The year the bubble burst 122
2001 122
vii
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
00 0732 FM 4/24/01 1:38 PM Page viii
viii
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
00 0732 FM 4/24/01 1:38 PM Page ix
ix
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
00 0732 FM 4/24/01 1:38 PM Page x
GIF 222
Loves logos, typography, and long walks in the woods 223
GIFs in Photoshop 224
JPEG, the Other White Meat 226
Optimizing GIFs and JPEGs 228
Expanding on Compression 231
Make your JPEGS smaller 231
Combining sharp and blurry 231
Compression Breeds Style: Thinking About the Medium 234
PNG 236
Animated GIFs 237
Creating Animations in ImageReady 238
Typography 239
The ABCs of Web Type 240
Anti-Aliasing 241
Specifying Anti-Aliasing for Type 243
General tips 244
General Hints on Type 244
The Sans of Time 244
Space Patrol 245
Lest We Fail to Repeat Ourselves 245
Accessibility, Thy Name Is Text 246
Navigation: Charting the Visitor’s Course 247
Slicing and Dicing 248
Thinking Semantically 251
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
00 0732 FM 4/24/01 1:38 PM Page xi
xi
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
00 0732 FM 4/24/01 1:38 PM Page xii
xii
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
00 0732 FM 4/24/01 1:38 PM Page xiii
Index 403
xiii
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
00 0732 FM 4/24/01 1:38 PM Page xiv
xiv
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
00 0732 FM 4/24/01 1:38 PM Page xv
A highly sought-after speaker at trade conferences, Champeon regularly participates in CMP’s Web
conference circuit and Cool Site in a Day competition, Thunder Lizard, South by Southwest (SxSW), and
others, often speaking on DHTML and how to grow successful online communities.
xv
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
00 0732 FM 4/24/01 1:38 PM Page xvi
Dedication
To Joan, whose love makes me feel happy and safe.
To my Dad, who taught me to be independent.
To my Mom, who loved books. I wish she could have seen this one.
xvi
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
00 0732 FM 4/24/01 1:38 PM Page xvii
Acknowledgments
I cannot possibly name all the people whose creativity has inspired me, or those I’ve been lucky enough
to collaborate with over the years. It would take hundreds of pages to properly thank those I’ve worked
with this year alone.
In childhood, I attended a wedding where the bride and groom thanked the special people in their lives.
In the flush of the moment, they forgot to name one friend. He harbored a resentment that deepened
over the years. Ultimately, a tragedy ensued, in which innocent bystanders lost their lives. But I digress.
Rather than make a similar mistake, I’m going to deliberately omit the names of many special people
who contributed to my knowledge of the Web and thus, however unwittingly, to this book. Even if you
are not named below, I love you and am grateful to you, and you should buy this book regardless.
To Steve Crozier of Populi, who envisioned an intelligent method of teaching web design, and to Mar-
garet Alston and Cheryl Stockton, who collaborated with me on the development of the Populi Cur-
riculum, my sincere and endless thanks.
My deep gratitude to Michael Nolan for asking me to write this book. To Michael and Karen White-
house for shepherding it safely through the minefields of the publishing industry. To development ed-
itor Victoria Elzey for keeping it real. And to my friend and this book’s technical editor Steven Cham-
peon for finding all the mistakes and not telling anyone but me.
To my beloved friends Fred Gates, Leigh and TJ Baker-Foley, and Katherine Sullivan: thank you for shar-
ing your lives, keeping me sane, and forgiving the disappearances, hibernation, and mood swings that
accompanied the writing of this book.
To Jim, who asked only an occasional phone call and got nothing but months of silence: I wrote this
book for you, I owe you more than these words express, and I promise to start calling again, really.
To Don Buckley, my friend and first web client, and to my first web design partners, Steve McCarron
and Alec Pollak, sincere thanks and respect.
All web designers owe thanks to Glenn Davis for contributions too numerous to describe here. Simi-
larly, respect and thanks to George Olsen, Teresa Martin, and Michael Sweeney. You know what you
did.
Love, thanks, and respect to Brian M. Platz, co-founder of A List Apart back when it was a mailing list
for web designers. To Bruce Livingstone, Nick Finck, Webchick, and Erin Kissane, who help keep ALA go-
ing. And to the fine writers who make it worth reading, including Joe Clark, J. David Eisenberg, Curt
xvii
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
00 0732 FM 4/24/01 1:38 PM Page xviii
Cloninger, Alan Herrell, Scott Kramer, Jeffrey Veen, John Allsopp, Robin Miller, Denice Warren, Jason
Kottke, Lance Arthur, Glenn Davis, Alyce McPartland, Ryan Holsten, Julia Hayden, Peter-Paul Koch,
Wayne Bremser, D.K. Robinson, L. Michelle Johnson, Mattias Konradsson, Steven Champeon (again),
Chris Schmitt, Marlene Bruce, Lee Moyer, Bob Stein, Dave Linabury, Mark Newhouse, Bob Jacobson, Eri-
ka Meyer, Ross Olson, Rich Robinson, Bill Humphries, Scott Cohen, Peter Balogh, Robert Miller,
Shoshannah L. Forbes, Pär Almqvist, Simon St. Laurent, Jennifer Lindner, Nick Finck (again), Jim Byrne,
Makiko Itoh, Ben Henick, George Olsen (again), and Chris MacGregor.
Thanks to everyone who’s ever looked at any site I’ve had a hand in creating, and especially to those
who’ve written (even if you wrote to say it stank). Thanks to all the web designers and developers who
joined The Web Standards Project.
Hello? Thanks to Tim Berners-Lee for inventing the Web. Thanks to the Web’s first teachers: Jeffrey Veen
(again), Glenn Davis (again), Dan Shafer, David Siegel, and Lynda Weinman. Thanks to Jim Heid and
Steve Broback of Thunder Lizard for support, encouragement, great programs, and fine hotel accom-
modations.
Thanks to Michael Schmidt and Toke Nygaard for the secret work you did on this book, for the incred-
ible work you do on the Web, and for your friendship. Similar thanks to the incredible Carlos Segura.
Thanks to Todd Fahrner and Tantek Çelik for contributing to my knowledge and (more importantly) to
the sane advancement of the Web. Likewise, each in their own way: Tim Bray, Steven Champeon (again),
Rachel Cox, B.K. DeLong, Sally Khudairi, Tom Negrino, Dori Smith, Simon St. Laurent, Eric Meyer, Eric
Costello, J. David Eisenberg (again), Dave Winer, Stewart Butterfield, Carl Malamud, Joe Jenett, Evan
Williams, Robert Scoble, and Peter-Paul Koch (again).
Huge shout-outs to my supremely talented web designer pals. I value your friendship and love your
work. You know who you are, and if you didn’t know you might get a clue from the fact that I am al-
ways linking to you or referring obliquely to you, and if that’s not enough, you’ll find yourselves in the
Exit Gallery at zeldman.com.
The paragraph above and the one you’re now reading constitute the toughest part of writing this book.
In the six years I’ve spent designing websites, I’ve met or corresponded with tens of thousands of tal-
ented people, worked with or gotten close to hundreds. I can’t list you all. This is so painful I feel like
canceling the book, but my publisher insists otherwise. Please accept these tragically empty paragraphs
as my attempt to embrace you all in love and gratitude.
Love and thanks to Peyo Almqvist, Derek Powazek, Josh Davis, Heather Champ, Daniel Bogan, Craig
Hockenberry, Lance Arthur, Michael Cina, Heather Hesketh, Dave Linabury, Dan Licht, Brian Alvey, Shau-
na Wright, Halcyon, Hasan, Matt, Jason, Big Dave, Lmichelle, Fish Sauce, Toke, Michael, Leigh, and
Uncle Joe.
xviii
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
00 0732 FM 4/24/01 1:38 PM Page xix
Foreword
I wrote this book for four people:
For Jim, a print designer who’s tired of sending his clients to someone else when they need a website.
For Sandi, a gifted art director, who’s hit a wall in her advertising career, and is eager to move into full-
time interactive design.
For Billy, whose spare-time personal site has gotten so good, he’d like to become a professional web
designer—but is unsure about what is expected or how to proceed.
And for Caroline, a professional web designer who wants to better understand how the medium works
and where it is going.
I did not make up these names or descriptions: These are real people. I knew the book was finished
when it had covered everything they needed to know.
An entire curriculum, a year of work and thought, and 100 years of professional experience (mine, my
editors’, and my collaborators’) have gone into this book.
Enjoy.
Jeffrey Zeldman
1 April 2001
New York City
xix
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
00 0732 FM 4/24/01 1:38 PM Page xx
This flow and flux is natural to the Web, and in some ways it is even healthy. It’s good when mediocre
sites improve, and it’s inevitable that pointless sites (like pointless products) eventually fade away.
But healthy and natural or not, the medium’s constant dynamism can wreak havoc with books about
the Web, and thus with those books’ readers. You read about an interesting design or technological de-
cision, fire up your web browser, and discover that the site no longer demonstrates what was discussed
in the book.
Fortunately, dear reader, you can minimize the damage by bearing these things in mind:
1. Most of the concepts and techniques discussed here are fairly widespread. If Site A no longer
sports a nifty rollover technique we’ve described, you’ll probably find it at Site B or Site C. The
principles are more important than the specific examples.
2. Sites should not arbitrarily change page locations, but unfortunately, many do. If a particular web
page seems to have disappeared, try factoring the URL to a simpler version. For instance, if
www.yahoo.com/games/thrills/ no longer works, go back to its purest form, www.yahoo.com/,
and see if you can navigate to the page’s new location that way.
3. Finally, if a site we’ve hailed as an example of creative excellence or touted as a superb resource
for further learning seems to have disappeared, try visiting the zeldman.com Exit Gallery at
www.zeldman.com/exit.html. If the site is truly special and has moved to a new location on the
Web, you’ll find that new address in our Exit Gallery. If the site has actually changed its name,
we’ll mention the former name to help you get your bearings.
xx
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
01 0732 Intro 4/24/01 11:12 AM Page 1
Introduction
WHEN WE FIRST MET STEVE CROZIER, president of Populi, we liked what he had
to say.
The Populi program was designed to close the web talent gap by training
traditional designers in the ways of the Web. Until ithe Populi program
comes to your town, this little book can teach you what you need to know.
This is not one of your “Learn HTML in 24 Hours” books, nor is it one of the
many introductory books on web graphics. It won’t teach you how to imi-
tate the stylistic tricks of famous web designers, turn ugly typography into
ugly 3-D typography, or build online shopping carts by bouncing databases
from one cryptic programming environment to another. This is a book for
working designers who seek to understand the Web as a medium and learn
how they can move to a career in web design. It’s also suited to designers
who wish to add web design to their repertoire of client services.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
01 0732 Intro 4/24/01 11:12 AM Page 2
2 Introduction
Populi (www.populi.com),
the Web Talent Incubator,
turns traditional designers
and programmers into web
builders.
Why did we base this book on the Populi curriculum? For one thing, it’s one
of the only programs we know that actually works. For another, we wrote
the curriculum. (To be honest, we wrote the curriculum in cooperation with
courseware developer Margaret Alston, and designer-instructor Cheryl
Stockton, of the Pratt Institute. The cranky opinions are ours; the thor-
oughness and good sense—theirs.)
The concepts contained in the Populi curriculum and this book have been
field-tested on working designers. They’ve been reviewed by web agency
consultants and Pratt faculty members, spoken aloud to tens of thousands
of web conference attendees, rolled in flour, and slow-baked at 450
degrees.
This book will teach you how web design compares to and differs from the
job you know and love. It will explain the medium’s challenges, such as
bandwidth, navigation, and browser compatibility. And it will teach you
enough of the technical details to work with your peers on the production
end and to pinch-hit as needed.
On the other hand, the book you are holding is available now, at a modest
price.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
02 0732 Part I 4/24/01 11:13 AM Page 3
Part I
1 Splash Screen 5
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
02 0732 Part I 4/24/01 11:13 AM Page 4
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
03 0732 CH01 4/24/01 11:14 AM Page 5
chapter 1
Splash Screen
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
03 0732 CH01 4/24/01 11:14 AM Page 6
Put another way, the Web is a medium, like print or television. It is avail-
able worldwide to anyone with an Internet connection. Unlike with print
or television, though, the Web is a two-way street. Not only can anyone
with an Internet connection view and interact with websites, he or she also
can create or contribute to such sites.
By the way, while URLs make possible a permanent address for every web
document, such permanence is not guaranteed. Companies go out of
business and take down their sites; products are replaced by newer mod-
els, and the old web pages go offline; news and information sites hampered
by limited server space kill old stories to make room for new ones; or a
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
03 0732 CH01 4/24/01 11:14 AM Page 7
new publishing system comes online, and old web addresses such
as www.url.com/issues/01/03/story.html are replaced by new robot-
generated URLs such as www.url.com/content.cgi?date=2001-03-21/
article.cgi?id=46&page=1.
Outside the corporate web sphere, personal sites go offline when their cre-
ators get bored or they move to a new location, and the creator neglects
to leave a forwarding address. There are as many scenarios as there are web
pages that have disappeared. This is a problem for web users who book-
mark certain pages in hopes of revisiting them and for directories such as
Yahoo.com or search engines such as Google.com whose business is to con-
nect seekers of specific information with sites that meet their needs.
Expanding Horizons
Searches and similar activities underscore the fact that the web experience
is interactive—another difference between it and print and TV. Visitors not
only link from page to page at their discretion, they also can post their own
content to some sites, shop at others, play games, or alter the design ele-
ments to suit their tastes at still others.
Note
We will discuss CSS, XML, and the DOM in due course. If you're nervous or
simply curious, skip ahead to Chapter 5, "The Obligatory Glossary," then come
on back.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
03 0732 CH01 4/24/01 11:14 AM Page 8
In terms of technological acceptance, the Web has grown faster than any
medium in history. In 1990, there were two “wired persons” (people con-
nected to the Web): Tim Berners-Lee, the physicist who invented the Web,
and his friend and colleague Robert Caillou. By 1993, there were 90,000
web users. Two years later, there were three million. By early 1999, that
number had grown to over 200 million, 80 million of them in the U.S. alone.
Six months later, estimates were well over 300 million. Soon there will be
more web users than McDonald’s burgers sold. Fortunately, no animals
were harmed in the making of the Web.
Computers will always be unaffordable for some folks, and others simply
dislike technology. How will the Web keep growing after everyone with the
means and desire has bought a computer and a modem (or whatever high-
speed connectivity that replaces the modem)?
It will grow by slipping past its existing borders. Drivers will receive direc-
tions from devices in their cars without realizing that the data is stored on
a site you may have designed. Technophobes will interact with sites while
finding out local movie times over the phone. They won’t know they’re get-
ting information from the Web; for them this will simply be a conventional
telephone experience. You won’t be responsible for porting the data (geek-
speak for translating web content into something a web-enabled phone
can understand), but your sites will undoubtedly reach people who have
never touched a “traditional” web browser.
Within the next five to ten years, it’s fair to say that “everyone” will use the
Web, just as “everyone” uses the telephone. Of course, there are human
beings who don’t use the phone (and many who don’t answer it, especially
if they owe you money), but we’re speaking in generalities to emphasize a
simple point:
You are about to begin designing for a medium that will eventually
reach practically every home and office in every corner of the world.
Your work will potentially affect the lives of billions. You will never
be lonely or go hungry again. But on the flip side of that joyous
news, you will face new challenges and will need to learn new skills
throughout your web career.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
03 0732 CH01 4/24/01 11:14 AM Page 9
“Billions” sounds like a pretty daunting audience. But as with all design,
remember that you’re not trying to reach or please everyone. If you design
to communicate ideas and if your clients are focused enough to have prod-
ucts or causes worth sharing with specific people, then the right hundreds,
thousands, or millions of people will visit and be enriched by your sites.
“Your sites.” It sounds nice, doesn’t it?
In art direction and graphic design, before you even begin conceptualizing
your approach, you must target your audience and learn the size of the
medium you’ll be working with (magazine spread, quarter-page newspa-
per, or outdoor billboard). On the Web, audience projection is an imperfect
science at best, and there are no absolute sizes, or absolute anything else.
But don’t reach for the Absolut vodka—there’s nothing to fear. Your design
vocabulary is simply going to enlarge. In fact, your whole conception of
what it means to design will expand.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
03 0732 CH01 4/24/01 11:14 AM Page 10
Most of the time in this book, we’ll be discussing the Web as we know it
and as your clients understand it: an interactive digital medium accessed
via a desktop computer with an Internet connection and viewed by means
of a web browser such as Internet Explorer, Netscape Navigator, or Opera.
We also will assume that you’ve used the Web yourself. Maybe you while
away the hours in a chat room where you’re known as HotBuns32 or you
spend half your life checking other people’s bleeding edge site designs. Per-
haps you just check your email once a week (and pretend you haven’t read
it when it’s from a relative) or log on once a year to save $5 on a Mother’s
Day bouquet. If you haven’t done any of this, go online now, and we’ll talk
later.
Though we’ll focus on the Web you know, we also will talk about the ways
the Web is changing—because those changes will have as profound an
impact on your career as they will on our civilization. What you’ll learn in
this book is only the beginning. (If you’re not comfortable with the idea
that a career in web design necessitates continual learning, put this book
down now and back slowly away.)
On the other hand, you might like the idea that the Web is steadily expand-
ing its borders. That people can already access some web content via hand-
held devices such as Palm Pilots. That there are web phones out there and
browsers for the blind. That web-based navigation systems are finding their
way into the cars and trucks we drive. That there is actually a prototype
web refrigerator, and that before we get much older almost every device
imaginable will be accessing the Web in some way or other—whether it
needs to or not.
All these applications will require the skills of talented designers (and pro-
grammers, of course). So congratulations on making an absolutely brilliant
career move. Now buy this book so you can actually start doing something
about all this.
If you’re curious about how the heck this Web thing got started, see Chap-
ter 4, “How This Web Thing Got Started.” If you’re unsure of your termi-
nology, see Chapter 5, “The Obligatory Glossary.” You’ll find both chapters
in Part 2, “WHO,” in the middle of this book, along with useful material on
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
03 0732 CH01 4/24/01 11:14 AM Page 11
the project life cycle and a detailed definition of the web designer’s role. If
you’d like to hear more about how smart you are for deciding to learn about
web design, phone your Mom—that is, if she’s forgiven you for that cheap
floral bouquet you got her.
On the other hand, if you’re ready to plunge into the most interesting
aspects of web design, Chapter 2, “Designing for the Medium,” has your
name on it, baby. But before you dive into it, we need to make one more
prefatory point.
For every ten sites that fail because they’ve ignored a certain web verity
(for instance, that navigation should be clear and streamlined), there is at
least one site that succeeds precisely because it violates this “rule” in a
unique and brilliant way. For every hundred sites that fundamentally mis-
understand the medium by behaving like static Illustrator layouts, there is
one that achieves greatness by doing so.
Most web designers begin each project by considering the end-user. But
we know of at least one certifiable web design genius who starts every job
by inventing dynamic behaviors he has never seen on anyone else’s sites
and then following those behaviors wherever they lead. Remarkably
enough, they lead to professional and usable sites whose uniqueness
delights precisely the users they were intended to serve. This should not
work at all, but it not only does work, it enlarges what the Web can be.
There is stupidity (and there is a lot of it). And then there is innovation and
creative rule-breaking that sometimes leads to greatness.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
03 0732 CH01 4/24/01 11:14 AM Page 12
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:14 AM Page 13
chapter 2
THE WEB IS LIKE EVERY OTHER MEDIUM to which you’ve applied your talents and
like no other medium you’ve ever grappled with. Everything you know as a
designer will help you tremendously, yet nearly everything you know must
be rethought. Sounds like a sales pitch—until you’ve actually tried your
hand at web design.
The Web is both more and less capable than print. On the one hand, it pro-
vides near-instant access to information, offers rich multimedia experi-
ences, and responds dynamically to the visitor’s actions. On the other, it
defeats the designer’s desire to completely control the visual experience.
The Web is different because anybody can make a website, but not every-
body can do it well.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:14 AM Page 14
Finally, the Web is different because it works best when it’s lean and mean.
Looking at a full-bleed, two-page spread places no strain on magazine
readers, but viewing sites that make extensive use of images, sounds, and
other “heavy” media can put a serious crimp in the web user’s experience—
particularly if the designer has not taken pains to optimize the site. File
sizes must be kept small if web pages are to download quickly and effi-
ciently over slow, dialup modem connections (or even fast connections).
Include too many images or other files per page, and the fastest connec-
tion will slow to a crawl due to limitations in the number of files that can
be served simultaneously.
This conflict between size and speed is known as bandwidth, and we will
have much to say about it later in this chapter. For now, the following dis-
turbingly technical definition will either give you your bearings or send you
screaming back to the safety of print design.
A Definition of Bandwidth
Designing for the medium is a joy—once you understand the Web’s limita-
tions and opportunities.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:14 AM Page 15
HTML was as simple as rain. It was built in that way so scientists could learn
it quickly and use it to publish their physics papers online. Documents pub-
lished in HTML were “styled” by the default settings of early Web browsers
(the familiar Times New Roman on a gray background). Early web pages
looked exactly like physics papers, which was pretty darned great if you
were a physicist.
But clients don’t buy physics papers. After designers and their clients
grasped the Web’s commercial potential, they began seeking ways to make
web pages look as good as other professional publications. Today, web
standards such as Cascading Style Sheets (CSS) allow us to do just that.
But in 1994 and 1995, these standards did not exist, so web designers and
browser makers such as Netscape began “extending” the behavior of HTML
in nonstandard ways.
What happened to HTML was not unlike what happens to legislation intro-
duced in the U.S. Congress. A legislator wants to change the speed limit in
his home state. By the time it gets out of committee, the bill includes taxes
on liquor and tobacco, gun licensing restrictions, subsidies for farmers,
mandatory parental warnings on CDs and cassettes, and an impassioned
plea for school prayer. Over the years, HTML was similarly amended,
extended, and tacked onto by a thousand hands. Many of those amend-
ments were intended to facilitate the needs of designers. A few were just
plain wacky. We’ve been coping with the damage ever since. Take the fol-
lowing example:
HTML Today:
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:14 AM Page 16
Later in this chapter, we’ll talk about HTML and web standards in more
detail. For now, it’s important to realize that the impulse behind the Web’s
creation was logical, structured, and intended to address a basic need: the
simple sharing of data. It was never about marketing or design.
Despite all that has befallen since those early days, many people continue
to view the Web as an archive or database of searchable information. And
some of these folks have espoused a set of “rules” to ensure that web pages
yield their information with a minimum of fuss and confusion. Let’s call this
group the Usability People. Jakob Nielsen is one of their foremost expo-
nents, and you can read what he has to say at www.useit.com. To Usabil-
ity fans, anything that impedes access to the data is bad; anything that
momentarily confuses even a single user is bad; and thus, pretty much any-
thing out of the ordinary is viewed with suspicion or banned outright. This
view of the Web is straightforward and can serve as a touchstone for web
designers, though the guidelines espoused by Usability gurus should not be
confused with Commandments. (Last time we checked, the Command-
ments were written by Someone else.)
This does not mean that web design is a cold, calculating science. Far from
it: Like all good design, web design is aesthetic, emotional, and largely
unquantifiable. The value in the Usability perspective is that it reminds web
designers to create sites that people can actually use.
This ought to go without saying, but you’ll find that in web design almost
nothing goes without saying. Perhaps in print you’ve known designers who
become so carried away with graphic design for its own sake that they for-
get to communicate. The synergy between headline and visual gets lost in
a haze of technique; typography advances toward illegibility; subtleties of
lighting completely obscure the subject, and so on. When web designers
make the same mistake, potential readers and customers are thwarted in
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:14 AM Page 17
their desire to use the site. The folks in suits start beating the designers
over the head with Jakob Nielsen’s latest book, and a good time is had by
no one. Don’t let this happen to you. It’s easy to avoid if you keep the
intended user and usages in mind.
Magazine and ad layouts may be wild or restrained as long as they are leg-
ible. Web design must be much more than legible, though many sites fail
to achieve even basic readability, and few indeed are a pleasure to read. (To
say nothing of the fact that most ad layouts are intended to convey sim-
ple messages, while websites often perform numerous, complex functions.)
In his widely read 1996 treatise, Creating Killer Websites, David Siegel
listed three cardinal virtues of web design: “Clarity, Brevity, Bandwidth.”
Though Siegel was a graphic designer and not a Usability Person (and
though he did not always achieve these goals in his own work), there’s
likely not a Usability Person on the planet who would disapprove of that
trinity.
But many designers and artists saw something quite different in the Web:
the chance to create and publish creative works that plunge the viewer into
a unique world of imagery, exploration, and cinematic or personal narra-
tive. This view, implicit in sites such as Photomontage (www.photomon-
tage.com) and Presstube (www.presstube.com), is as vital to the health of
the medium as the contrasting Usability perspective. We’ll call its expo-
nents the web artists, though this label is somewhat misleading. For while
it’s true that many web artists are motivated by the urge toward pure cre-
ative expression, the trails they blaze are invariably followed by marketers
in search of deep online branding opportunities. The innovations delivered
by pioneering multimedia artists quickly become the basis for sites touting
Motown, Madonna, or Barney’s New York.
Web artists do not believe in holding the visitor’s hand. They judge that
websites can be as challenging as paintings, music, literature, or Swedish
movies. They further hold that there is an audience for sites that raise bars
and test boundaries. They are, of course, correct. Challenging sites can
reward patient viewers. They don’t please everyone but neither does mod-
ern painting. Writer Curt Cloninger summed up the conflict between those
who view the Web as an informational database and those who see it as
a wide-open aesthetic frontier when he shrugged, “Usability Experts are
from Mars, Graphic Designers are from Venus” (www.alistapart.com/
stories/marsvenus/).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 18
Figure 2.1
Supermodified looks like
(and is) a work of multi-
media art. Yet it serves a
commercial purpose.
Visitors can trigger loops
of music by typing on the
keyboard. A strictly infor-
mational approach to site
design, such as the Google
Search Engine (Figure 2.2),
would be far less effective
at creating excitement
about the composer’s work
(www.amontobin.com).
Figure 2.2
The Google Search Engine.
A classic example of func-
tion driving form (with the
possible exception of the
logo). Google’s search
engine delivers solid
results, and hardcore geeks
love it because it strips
away the clots that clog
the arteries of most com-
mercial search engines.
Both Google and amonto-
bin.com are successful at
doing what they set out to
do, yet they are clearly
different in their approach
to the user experience
(www.google.com).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 19
Mars and Venus, left and right brain, utility and artistry. On one side stands
a set of Usability Commandments based on roughly a decade of trial
and error and a heaping teaspoon of pseudo-science. On the other lies the
indefinable essence of art and a horde of marketers who stand ready to
exploit it.
Somewhere between these two extremes you will find the appropriate bal-
ance for each site. The ideal balance for most sites will not be found in the
stone tablets of Mars or the sensual abandon of Venus. Rather, it will come
from each project’s intended audience. Your visitors’ needs set the param-
eters; your taste, inspiration, and expertise do the rest.
That tension between structure and style, function and aesthetics, is key to
understanding web design and web technology. Users have needs; tech-
nology sets limitations. The conflict will resurface throughout this book and
your career—and it is only the beginning. Web design is different in fasci-
nating ways. Following are a few key points of difference.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 20
You might feel that your training and experience have not prepared you to
build such architecture, but you’ll soon see that it’s the web equivalent of
what a designer always does: guide viewers toward an understanding.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 21
On the Web, linear motion gives way to user emotion. Site visitors link ran-
domly as they choose. Set up as many careful hierarchies and navigational
cues as you want; visitors will still do what they like on most sites. Not only
may visitors move up, down, and sideways, they also can bookmark any
page they fancy; download it to their hard drives; save the images from it;
and even study the HTML markup with which it was produced.
Readers can order books on the Web by typing in HTML form fields sup-
ported by scripts written in Perl, Java, or other programming languages
(www.amazon.com). They can post their opinions to message boards
(www.metafilter.com). If the designer has given them the option, they may
change the background colors to suit their mood (www.camworld.com). On
fancy Dynamic HTML (DHTML) sites, they can drag images from place to
place (www.dhtml-guis.com/game/). On fancier ones, they can do much
more (www.assembler.org). On a corporate intranet site, employees may
spend hours updating a group calendar or adding phone numbers to a con-
tact database. (Anything to avoid working.)
Figure 2.3
Non-commercial interac-
tivity: Assembler.org was
created with DHTML (here
it is done well). As of this
writing, the site was opti-
mized for Netscape and
Microsoft’s 4.0 browsers,
which rely on proprietary
coding techniques. Thus
the site’s marvels would
be invisible to users of
recent browsers that avoid
proprietary, old-school
DHTML. By the time you
buy this book, the site
should function well in
standards-compliant
browsers such as Netscape
6 (www.assembler.org).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 22
Figure 2.4
Commercial interactivity:
Barnes & Noble, a func-
tional and attractive
shopping site. Successful
e-commerce sites work in
as many browsers as pos-
sible and add value to the
commercial transaction by
providing content and
artificially intelligent
“shopping tips.” Though
Barnes & Noble has a
real-world heritage,
Amazon.com dominates
the online market because
Amazon came first. When
web brands are effective,
users can be incredibly
loyal (www.bn.com).
There is obvious commercial value to commercial interactivity; novelty or
“proof of concept” value to dynamic artwork and games; branding value to
interactive multimedia (www.barneys.com); and hidden value to still other
types of interactivity. (Changing the background color may seem trivial to
you or me, but it could be vitally important for a color-blind web user.)
Overall, interactivity is a defining characteristic of the Web and thus of web
design. Lesbian poetry and physics papers did not drive the rapid expansion
of the medium. Commerce did that, and commerce depends on interactiv-
ity: the visitor clicks, the sale is made.
At least, that’s what the marketers tell us. Consider this another
Mars/Venus variation for your pleasure. The Internet grew in popularity for
at least two years before any commercial sites were allowed on the Net,
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 23
much less the Web. And many defining characteristics of the modern Web
($20 unlimited access dialups, 56K modems, free browsers) were estab-
lished by 1995-96, a time when most web users were also web designers,
and the word “commerce” did not begin with the letter “e.” Still, the Web
has expanded like nobody’s business since business came online. And if you
ask most normal humans who’ve gone online in the past few years why
they bought a computer and signed up for an Internet account, “shopping”
seems to top the list.
WEB AGNOSTICISM
Design for the Web is also different because the Web is not a fixed medium.
It has no size, no inks, no paper stock. Even your typographic choices may
end up as mere suggestions. That’s because the Web is platform-agnostic
and device-independent. Good web design adapts to different browsers,
monitors, and computing systems. What’s sauce for the goose may not be
sauce for the gander. More literally, what’s Geneva for the Mac may be Arial
for Windows; what’s VBScript for Windows may be error messages for Mac
and Linux users. (So don’t use VBScript to build websites.)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 24
Looking at poorly implemented sites, you could come away with the
impression that the Web is a Windows application or even an extension of
the Windows desktop. And there are certainly marketers who’d like you to
believe that. But it just ain’t so.
Berners-Lee and Caillou invented the Web on a NeXT computer. The first
browser ever released was for UNIX, the second for Mac OS. Berners-Lee
envisioned the Web as a completely portable medium—one that could be
accessed not only by every computer operating system (including dumb
terminals), but also by all kinds of devices from hand-held Personal Digital
Assistants (PDAs) to telephones and other common appliances. Slowly and
sometimes painfully, everything Berners-Lee envisioned in 1990 has been
coming true.
Don’t worry about what the acronyms stand for at the moment. Just dig
the concept: If everyone supports the same standards (or “Recommenda-
tions,” in W3C parlance), then designers and programmers will have the
tools they need to deliver a dynamic and attractive Web that works for any
human being, on any platform or device. Sweet, smart, simple.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 25
In the beginning of this chapter, we mentioned that the Web was spawned
as a beautiful medium for the delivery of physics papers. And that to deliver
commercially viable sites—sites with some semblance of visual appeal—
web designers felt they had no choice but to “hack” HTML, forcing the
deliberately primitive markup language to serve their aesthetic needs.
Netscape (now AOL) joined web designers in extending HTML beyond its
creators’ intentions.
Initially, the Web was a one-horse town. If you wanted to design a com-
mercial site, you wrote nonstandard HTML that was “optimized” for
Netscape’s browser. Once Microsoft’s browser entered the picture, all hell
broke loose, as two powerful software companies began deforming HTML
in mutually exclusive ways.
Eventually, the market split in two. Though a tiny percentage of web users
sported alternative browsers including Lynx, Mosaic, Opera, and Amaya,
basically 50% of the market was using Netscape’s browser; the other 50%
was using Microsoft’s. To create “technologically advanced” sites for their
clients without alienating half the potential visitors, designers and devel-
opers felt obliged to create Netscape-specific and Microsoft-specific ver-
sions of their sites. Clients then paid more than they should have to support
the development of these incompatible site versions. Thanks in part to
protests from groups such as The Web Standards Project (www.webstan-
dards.org) and mainly to the hard work of browser company engineers, sup-
port for common standards is constantly improving—though not without
occasional backsliding.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 26
When Netscape unveiled <FRAMES> (the ability to place one web page
inside another), the technology was widely adopted by designers and
developers. Refer back to Figure 2.3, Assembler.org, for an example of the
way frames work. The bottom frame contains a menu; the top frame con-
tains the content. Clicking the menu changes the content by loading a new
content frame. Both frames are controlled by yet a third document, called
the <FRAMESET>, which links to the frames, establishes their size and posi-
tioning relative to one another, and determines such niceties as whether or
not the user can resize a given frame.
Eventually Netscape brought its invention to the W3C. Much later, it ended
up as part of a temporary standard: the HTML 4 Transitional Recommen-
dation. It took Microsoft a while to support frames, because Microsoft’s
browser developers had to reverse-engineer Netscape’s invention to figure
out how it worked. Ironically enough, Microsoft’s 4.0 browser eventually
supported frames better than Netscape’s.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 27
The important thing is that there is now a road map for browser compa-
nies, developers, and designers. If you took your talent to the Web in the
1990s, you had no way of knowing what new technologies might come
down the pike, what new skills you would have to learn, and how quickly
what you learned (and designed) would become obsolete. Today we know
which standards have been fully or partially implemented in browsers and
which ones we can expect to work with in the next year or two. As opposed
to the past when Netscape could surprise us by inventing JavaScript and
frames or Microsoft could spring VBScript and ActiveX on us and expect us
to quickly learn and use those technologies, today we know what to antic-
ipate and what to learn to prepare for the future.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 28
At first blush, the programmers on your team would seem to have a tougher
job than you do. How on earth are they supposed to accommodate all those
different operating systems? The answer is, they don’t have to. Browser
companies are stuck with the tough job of supporting all those platforms
(or a limited subset thereof). Web standards do the rest. JavaScript is
JavaScript whether it’s running in Linux or Mac OS. Style sheets are style
sheets whether they’re running on Windows 2000 or BeOS. The more web
standards the browsers support and the more completely they support
those standards, the fewer migraines programmers (and web users) will
have to endure.
You, on the other hand, will continually test your designs for cross-
platform feasibility. You will have to cope with the fact that your favorite
Mac system font is not available on the PC (or vice versa). That those tawny
PC colors look pale as Christina Ricci on the Mac. That the large, bold sans
serif headline that looks so dapper on systems with scalable type and built-
in anti-aliasing (such as Mac OS and Windows 98) may look hillbilly-
homely on platforms lacking those niceties (such as Linux).
What You See Is What You Get (WYSIWYG) programs, such as Macrome-
dia Dreamweaver and Adobe GoLive, attempt to give designers the sensa-
tion of retaining complete visual control over web layouts. It is an illusion.
A vast majority of professional web designers still hand-code their pages.
At the very least, they hand-tweak Dreamweaver- or GoLive-generated
code to accommodate the reality of browser and platform differences.
Browser and platform differences mean that the precise control you’ve
come to expect from publishing programs such as Quark XPress and Adobe
InDesign simply does not exist on the Web. You can bemoan this fact or
learn to create beautiful work that exploits the medium’s changeable
nature and facilitates the needs of millions—perhaps even entertaining
them in the process. Not such a bad trade-off, when you come right down
to it.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 29
From www.w3.org/Mobile/Activity:
"Mobile devices are unlikely to be able to use exactly the same markup
as a normal page for a PC. Instead they will use a subset of HTML tags.
The expectation is that different devices will make use of different mod-
ules of XHTML; similarly they will support different modules of style
sheets. For example, one mobile device might use the basic XHTML text
module and the style sheet voice module. Another device with a large
screen might also allow the XHTML tables module."
You might find yourself working for companies or clients who demand spe-
cial features that only work in one browser. Just say no. On an intranet site
(see Chapter 5), it might be feasible to design a site that only works in IE5,
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 30
Netscape 4, or what have you, because those who commission the site con-
trol the browsers used to access it. But we’ve heard of plenty of companies
that decided to go public with part of their intranet site—only to discover
that its nonstandard features locked out millions of web users. We also
know an agency that designed an intranet site to take advantage of
Netscape 4’s proprietary DHTML Layers technology. When Netscape aban-
doned this technology in favor of web standards, the company’s IT depart-
ment was unable to upgrade its users to the latest version of Netscape’s
browser, which would have made the site nonfunctional. Who took the
blame for this fiasco: the client who had insisted on using proprietary, non-
standard technology or the web agency that had argued against it? If
you’ve had any real experience as a designer, you’ll understand that the
question is rhetorical.
You can often get away with taking the moral high ground simply by
explaining to your clients that delivering what they request will cost them
25% or more of their potential audience. The disabled are almost always
among the first to be locked out of a site that relies on proprietary tech-
nology. Excluding millions of people from a public site is not exactly a bril-
liant business decision, and ethically speaking, it stinks. Excluding the
disabled is also illegal in many instances, at least in the United States.
Court cases have been fought over it, and the client usually loses. The Aus-
tralian Olympics website was one legal casualty; the cost to the site’s own-
ers would have wiped out poverty in three small South American nations.
If legal and ethical arguments don’t work with your clients, show them the
money.
Technologies such as HTML, JavaScript, and CSS are the building blocks of
web design. In theory, all browsers fully support these standards, deliver-
ing on the promise of browser and platform-agnosticism and offering us a
Web where we can “write once, publish everywhere.” Theory and reality
often diverge. In fact, the divergence between them is more or less the story
of the Web. The good news is that built-in browser incompatibilities are
gradually going the way of the Dodo bird as more standards-compliant
browsers become available.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 31
To read the preceding three sentences not only induces coma, it also sug-
gests that designers are now free to use nothing but W3C standards in the
sites they and their colleagues create.
Alas, this is not the case. IE5 for Windows currently offers excellent but
incomplete support for standards. IE4, currently the most-used browser on
the Web, has good but still less complete support for standards, and
Netscape 4, still used by millions, offers even less. Sure, users can upgrade,
and eventually they will—but at their own pace.
We call this upgrade period the 18-month pregnancy, based on the time it
usually takes before web users feel compelled to switch to an updated
browser. Web designers and enthusiasts download new browsers immedi-
ately—not so your Uncle Nigel. While you beta-test next year’s browser,
your client sticks with AOL 3. Clients and other normal human beings tend
to use the browser that came preinstalled on their computers. They upgrade
when they buy a new PC. Computer manufacturers tend to install 3.0
browsers (considered stable) when 4.0 models are newly available; they
offer 4.0 browsers when 5.0 models first come out; and so on. IT depart-
ments are equally conservative, tending to view new browsers the way cats
regard changes to their litter. Those who use the Web primarily to shop,
send email, or view pornography may not be aware for months that a new
browser is available, and when they do find out they often don’t care.
The browser upgrade path is slow, thus the transition to a Web built purely
with standards could take 18 months or longer. Some say we will not see
a fully standards-compliant Web before 2003. For the near future, you will
likely find it necessary to employ nonstandard workarounds to address spe-
cific deficiencies in these older browsers. We’ll explain these workarounds
in the relevant chapters on HTML, CSS, and JavaScript.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 32
Five years ago, the entire Web was a hack, held together with carpet tacks
and lasagna. We are better off now than we were then. And soon the night-
mare of browser incompatibilities will be a story we tell to bore our grand-
children.
Millions of personal sites prove this point. Many are of interest mainly to
their creator’s immediate family and friends—and that’s okay. But a sur-
prising number offer valuable content and/or sophisticated design. You can
view the vast outpouring of personal pages as proof that HTML is easy to
learn. You also might see in it the unshakable human urge to reach out and
connect with others. You can even view it as an extended experiment in
democracy.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 33
But the Web presents few such barriers. Buy a computer and a modem, find
a hosting provider, learn HTML and some UNIX filing conventions, and
voila—you are a worldwide publisher! If you can’t afford a computer and
modem, most public libraries, universities, and schools offer free Internet
access. If hosting fees are beyond your means, companies such as Geoci-
ties (www.geocities.com) provide free hosting in exchange for the privilege
of running ad banners on your site. The Web places the virtual means of
production in the hands of virtually every worker. What would Karl Marx
think?
Figure 2.5
The Stinky Meat Project.
On the Web, anyone can
publish anything they like.
Baby, that’s democracy!
(www.thespark.com/
health/stinkymeat/)
Speaking of low access barriers, remember the days when you had to
expensively laminate print proofs of your best work, slip them into a costly
portfolio, and toss them out every six months as your new work made the
old stuff obsolete? Well, forget all that. With a free or inexpensive Inter-
net account, you can mount a web portfolio that’s viewable anywhere in
the world. Nothing to replace; nothing to bang into the knees of a Nean-
derthal seated across from you on the subway; nothing for your boss to see
you lugging around when you look for a new job on your lunch hour.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 34
INSTANT KARMA
If the invention of the printing press brought humanity out of the Dark
Ages, the building of the Internet and the growth of the Web have ushered
in a new information age. It’s an era where every voice can be heard and
where truth can win out over lies—even when the liars have million dollar
budgets. Say Detroit spews out a bad car (it happens) and decides to dump
millions on advertising in the hope of selling it anyway. Message boards on
the Web will quickly spread the word that the lemon gets five miles per
gallon and spends more time in the shop than on the road. Angry owners
may even start a protest site, garnering coverage in the traditional
news media. The Web has changed the rules of the market. (See
www.cluetrain.org for more on this.)
It also has changed publishing. Some of the Web’s best-loved authors have
never written a traditional book. Others have gotten traditional book deals
based on the popularity of their online publications.
The Web has launched careers, CDs, and movies and brought together the
globally scattered members of countless unnamed tribes. You might be the
only Sufi in Piggott, Arkansas, but you can find thousands of fellow believ-
ers online. If the other kids attending Fredericksburg High don’t share your
passion for the music of Bernard Herrmann, you’ll find folks more in tune
with your interests online.
Social commentators sometimes worry that the Web is making us more iso-
lated. In the picture these pundits paint, tortured introverts peck out des-
perate messages in dark, lonely chat rooms. We take a different view. In
ordinary life, extraordinary people often feel terribly isolated because no
one around them can understand them other than superficially. The Net
and the Web offer real hope and true companionship for those willing to
express themselves and seek out like-minded souls. This, we think, is a good
thing.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 35
The Web not only reaches the world, it changes it. As a web designer, you
will be an agent of change, which is a lot easier and much less dangerous
than becoming an agent of the FBI. You’ll also sleep better, and you won’t
have to wear a tie.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 36
Visit a web community, and you’ll see people who used to channel-surf
devoting their leisure hours to arguments, flirtations, and other classic
forms of human interactivity. These communities can spill over from the
virtual realm to the real world. The members of Redcricket, for example,
visit each other’s cities (www.redcricket.com). The readers and writers of
Fray (www.fray.org) hold live personal storytelling events each year. The
members of Dreamless (www.dreamless.org) participate in collaborative
design projects (www.kubrick.org) and hold noncommercial “underground”
design festivals in cities such as London and New York.
Designers can thwart the user’s power if they insist—with mixed results. For
instance, to force the viewer to see what you want her to see, you can
deliver body text in an image instead of typing it in HTML. This is a classic
mistake of the novice web designer. Why is it so wrong? Let us count the
ways:
1. If the viewer has turned off images in her browser, she cannot read
what you (or your client) have to say.
2. She cannot copy and paste your text into an email message she’s
sending to her family.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 37
5. As if those are not reasons enough to stick with HTML text, consider
the fact that each image must be downloaded, translated, and dis-
played by the browser—a process that can take more time than the
reader is willing to devote to your site.
Lest you run scared, bear in mind that most web users rarely, if ever, change
their browsers’ defaults. By default, images are turned on, JavaScript is
turned on, and style sheets are turned on, which means that your typo-
graphic choices and other design decisions come through intact (albeit fil-
tered by the visitor’s browser and platform). Nevertheless, educated users
do have the power to filter your work through their preferences, so it is
important to think of web design as a partnership with the people who read
and view your sites and to accept the fact that your layouts might be trans-
formed by visitors with special needs or quirky preferences.
Figure 2.6
An embedded Quick-
Time video at The Ad
Store’s website. QuickTime
streams the video,
enabling it to begin play-
ing before the file has
fully downloaded. In this
way, the needs of the
low-bandwidth user are
accommodated without
impacting file quality
(www.the-adstore.com).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 38
On the Web, multimedia is most often delivered through free players (such
as RealPlayer) and free browser “plug-ins.” These are much like the third-
party plug-ins that add new capabilities to programs such as Adobe Pho-
toshop, except that they’re free. Browser plug-ins are downloadable
mini-applications that handle specific types of multimedia (MIME) con-
tent. For instance, the QuickTime plug-in (www.apple.com/QuickTime/)
allows Mac and Windows users to view digitized videos. It also plays MP3
audio files, Windows WAV audio files, Windows AVI movies, PNG images,
BMP images, and other common media formats.
How does the server “know” the user’s connection speed? The plug-in
“tells” the server. QuickTime includes a control panel, which asks the user
to select her connection speed. This information is then conveyed to the
plug-in. Ingenious.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 39
The server actually knows quite a lot about each site visitor’s setup. For
instance, it knows what kind of browser is requesting each file on a given
web page, which version of that browser (5.0, 5.5, and so on) is being used,
and which operating system runs on the visitor’s desktop. The ability to
access this information can be quite useful when you’re coping with
browser and platform incompatibilities—as we’ll discuss in Chapter 11, “The
Joy of JavaScript.”
Because the server finds out and records this information every time a web
page file is requested, you also can find it out for yourself by checking your
site’s referrer logs. What are those? Glad you asked.
Referrer logs are a standard means of letting the site’s builders or owners
know how many people are visiting, what browser and platform they’re
using, and which third-party sites “referred” these visitors via links. They
also track the national origin of each unique visitor, tell you which pages
are the most visited, and much more. Referrer logs are cool.
You won’t find your visitors’ names, addresses, and telephone numbers, of
course. That information is private, not because all site owners are decent
human beings but because such information is unknowable unless the vis-
itor has voluntarily supplied it.
Web users’ privacy concerns make them unlikely to provide personal data
without sufficient motivation. Reading The New York Times free of charge
may constitute sufficient motivation. Finding out more about Widgets.com
probably does not.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 40
Many sites over the years have unwittingly erected barriers by forcing users
to enter personal data without first giving a clear picture of what the user
would gain by doing so. Many of these were sites flung together like so
much moldy cheese by traditional media moguls. When users failed to reg-
ister, the moguls would claim that “Web content doesn’t work” (if the ill-
conceived site was their own) or trumpet the failure far and wide (if the
site belonged to a competitor). Some of these sites offered decent content,
but few folks were willing to cross the privacy barrier to find out about it.
Though web users are understandably reluctant to reveal their salaries and
sexual preferences merely to view content, the server’s tracking of less sen-
sitive information can still be incredibly useful to the design and develop-
ment team. For instance, if you discover that a great many visitors are
coming from Sweden, you might commission a Swedish translation of the
site—thereby enticing still more Swedes to visit. If you learn that 90%
of your audience is using a 5.0 browser or better, you can incorporate
standards-based dynamic technologies with less fear of alienating your
core user base. The combination of server user awareness and sophisticated
plug-ins such as QuickTime allows you to craft the optimum experience for
each visitor.
The server can always tell each user’s connection speed, operating system,
and browser. This allows sophisticated plug-ins like QuickTime to deliver
the optimum experience for each user. As we’ll see later, it also enables us
to do clever and useful things with JavaScript.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 41
Flash, RealPlayer, QuickTime, and Windows Media Player all stream their
content (begin playing the file soon after downloading begins). But even
streaming formats are limited by the bandwidth constrictions of the end-
user’s modem. Streaming or not, no multimedia format can pour its data
faster than the user’s modem can drink it.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 42
As you might expect, the format that compresses best uses the least band-
width and is therefore the most popular. The RealPlayer (www.real.com) is
the “best-selling” free video player on the market because it compresses
video and audio down to sizes that work well even over dialup modems
(though 56K modems are strongly recommended). QuickTime files tend to
be larger than Real files and have higher quality; again, as common sense
would lead you to expect, QuickTime is not quite as popular as RealVideo.
Windows Media Player is currently the third most popular streaming for-
mat. Though it’s native to the Windows Operating System, an oddly named
“Windows Media Player for Macintosh” is available also, and seems to work
well enough.
To begin with, every browser since Mosaic, released in 1993, has a menu
item called View Source. As you’d expect, this allows you to view the source
code of any web page. How the heck did the designer pull off that intricate
web layout? View the source and find out. How did they make the image
change when you dragged your mouse across it? Click View Source and
study their JavaScript code. It is, of course, possible to obfuscate JavaScript
source code, making it difficult for source snoops to understand what is
going on. It’s also possible to write extremely ugly code, but that’s usually
not intentional. For an example of the former, use View Source and com-
pare: http://dhtml-guis.com/game/poetry.opt.html versus http://
dhtml-guis.com/game/poetry.html.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 43
The ability to view source code is there for a reason: to teach HTML and
other markup and scripting languages by example. Even sharp operators
who know all the angles are constantly learning new tricks and techniques
by studying their peers’ sources.
Make a mental note never to steal someone else’s source code outright. All
you want to do is learn from it. This is an ethical and professional issue, not
a legal one. Unlike text, artwork, and photography, HTML markup is not
protected by copyright, even though some web designers claim otherwise.
Unscrupulous designers do steal each other’s code, but this is a bad prac-
tice. If the moral issues do not concern you, imagine your embarrassment—
and possible business difficulties—should your client receive an angry letter
from a designer whose code you swiped. It’s not worth the risk.
In Chapter 8, “HTML, the Building Blocks of Life Itself,” we’ll teach you how
to View Source in your HTML editor of choice rather than inside the
browser. Because many designers won’t bother reading that chapter, we’ll
pad it out with poignant childhood reminiscences and jokes involving
creamed corn.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 44
Microsoft’s Internet Explorer does not let you view page info the way
Netscape’s browser does. But both browsers are free, and as a designer you
will be using both anyway. In fact, you’ll regularly be checking your work
in at least two generations of Netscape and Microsoft’s browsers and then
double-checking it in WebTV, Opera, iCab, and Lynx.
In all likelihood, even when all browsers fully support common standards,
you will still have to check your work in multiple browsers to avoid browser
bugs—and of course you will have to view your work on multiple platforms.
Or at least ask people on web design mailing lists to check it for you.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 45
width obstacle for most of your potential audience. Design with large files,
and your audience shrinks to a chosen few who enjoy fast access at all
times. Design with many large files per page, and your audience shrinks to
you and you alone.
Similarly, 10 early adopters share a super-fast cable modem line. They brag
to their friends who quickly subscribe to the service and tell their buddies
about it. Soon 1,000 people are connected to the same cable modem line,
and it is no longer reliably fast because the available upstream bandwidth
has shrunk. The cable modem is still offering the same peppy connectivity,
but the bandwidth is now shared across multiple users.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 46
So let us repeat: There is never enough bandwidth. Therefore, the best web
design is that which conserves bandwidth.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 47
Prune redundancy
Another technique to conserve bandwidth is to remove redundancy from
HTML code. If you’re unfamiliar with HTML, you can scan Chapter 8 for a
quick overview. But even if you don’t, the following example will probably
make sense to you. If not, just nod along and come back later.
In traditional web design, we use HTML tables to position text and images
on the page. HTML tables are just like tables in a spreadsheet, except that
the borders are usually turned off (border=”0”) to hide the underlying tech-
nology from viewers. By default, elements in a table cell are left-aligned
unless the programmer has specified otherwise by typing something like
<td align=”center”> or <td align=”right”>. Therefore, in an HTML layout, it
is unnecessary to type:
<td align=”left”>
<td>
Will suffice. Now, <align=”left”> does not eat much bandwidth on its own,
but multiplied thousands of times throughout a site, that kind of unneces-
sary markup adds up to a significant waste of bandwidth per visitor. If the
site wastes 10K of bandwidth on each visitor, and one million visitors
access the site each week, the waste of bandwidth is multiplied to an
astounding 10 gigabytes per week, and visitors may experience a decline
in the overall responsiveness of the web server.
<div align=”Center”>
<form>
<input
type=”button” style=”font-size: 12px; font-family: geneva, arial, sans-serif; background-
color: #ff6600; color: #ffffff;”
value=”Previous Reports”
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 48
onClick=”window.location=’com0800a.html’;”
onMouseOver=”window.status=’More of same.’; return true;”
onMouseOut=”window.status=’’;return true;”>
</form>
</div>
<p>
<br>
</p>
Note that this technique cannot be applied to the entire web page. If you
mess with the white space and line breaks in JavaScript, you can generate
scripting errors that cause pages to fail. It is only safe to delete the extra
white space in the HTML portion of each document. HTML does not care
whether the white space is there or not. But extra white space adds to the
character count, which in turn, beefs up the document’s overall weight. An
HTML document with plenty of white space can weigh in at 11K, while an
identical document without white space may be as little as 9K. Certainly,
2K is a negligible amount of bandwidth, but multiplied by a million users
a week as per the previous example, it once again becomes significant.
Before you rush off and start deleting all the white space from your HTML
files, bear in mind that white space helps the eye make sense of the code.
Because a site that never changes is a site that soon loses its traffic, you
will frequently find yourself reopening documents you created months
before to update the content and design. Just as often, a coworker will have
to open and revise a document you created, or you’ll be editing one of
theirs. Moreover, web design is becoming more and more collaborative,
which means more and more documents change hands throughout the
process. For this reason, most web designers leave plenty of white space in
their documents—along with a trail of comments which help the designer
or her successors make sense of the markup.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 49
Bandwidth is key but not at the price of sanity. Nevertheless, some web
shops routinely save bandwidth by removing the white space from their
HTML documents. To protect themselves from suicidal despair, these shops
first save a legible copy of each document and preserve it offline. When a
particular HTML document needs to be updated, the designer or producer
opens the original document, not the one from which white space has been
removed.
That’s all well and good for the web user, but how does it apply to the web
designer’s job?
The answer is simple: The more we reuse graphic elements, the less strain
we put on our visitors’ bandwidth. If we reuse the same graphic menu bar
elements from page to page, these elements only have to be downloaded
once. From then on, whenever the visitor hits a new page, the familiar
menu bar graphics are reloaded from the cache on her hard drive. By con-
trast, if we change the design of the menu bar on each page, the visitor
must download new graphics with every page, thus slowing the site expe-
rience (and adding to the toll on the server).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 50
Figure 2.7
The title says it all:
“a5kRobustScalableInterne
tOnlineEcommerceFurnishi
ngsOutlet,” the winning
entry in the 5k Contest,
is both a spoof and a
functioning e-commerce
site, created in less than
5K of bandwidth
(www.the5k.org/). For
those brand-new to the
field, e-commerce was the
Holy Grail of web design
in 1999.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 51
SCREENING ROOM
Luxuriating in your monitor’s 21” screen, you design a site that looks sen-
sational. How will it look on a 14” screen? Will it even fit? That is the chal-
lenge of screen resolution.
Screens range from 14” to 21” (and higher), with 15” and 17” currently the
most popular. By the time this book is printed, 17” screens will dominate
the home market, and ladies named Mistress Beatrice will dominate every-
where else. Laptops will continue to offer 14” and 15” screens along with
the coveted 17-incher. Not only do screens vary, resolutions vary. Some
folks view the web at 640 x 480; others at 1600 x 1200 (or even higher).
This wild fluctuation in monitor size and screen resolution has a critical
effect on page layout.
Are we saying that your site must be able to fit inside a 640 x 480 envi-
ronment? No, you don’t always have that much space. Consider that
browsers do not make full use of the screen. In Windows, room is left at
the bottom for the task bar, while the top of the screen is taken up with
browser chrome (the buttons and text entry fields that allow users to nav-
igate the Web). In Mac OS, the right-hand side of the screen is reserved for
that little trail of icons representing the user’s hard drive, saved files, and
other work-related shortcuts, and the top of the screen is again given over
to browser chrome.
Liquid Design
The solution is to embrace the fluid nature of the medium and, whenever
possible, design in a resolution-independent manner. Glenn Davis, web
critic and former Chief Technology Officer of Projectcool.com, uses the
phrase Liquid Design to describe an approach to web design in which the
content reflows as it is “poured” into any monitor size.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 52
Figure 2.8
The original site design for
jazzradio.net works well if
the visitor’s monitor is
small…
Figure 2.9
…and equally well if the
monitor is large. Liquid
Design makes users of
any size monitor feel
equally at home
(www.jazzradio.net).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 53
There are limits to how wide a web layout may be stretched before it begins
to look ludicrous, but the goal is not to provide hours of “squash and
stretch” fun for web users. (They’re not going to perform this exercise any-
way.) The goal is to provide a site that seems to naturally fit each visitor’s
monitor. This makes the visitor feel right at home, thereby encouraging her
to spend more time on the site and drink milk right out of the carton when
she thinks you’re not looking.
By contrast, with a more rigid approach to web layout, your site might
appear to be “shoved into the corner” of a user’s large monitor. Or it might
be too wide for the user’s small monitor, forcing her to scroll left and right
(or more probably, encouraging her to leave and never come back).
Figure 2.10
Fixed web layouts can be
attractive, but on larger
monitors the design can
suffer from that “shoved
into the corner” feeling
(www.bananarepublic.com).
Sites must be designed to
work on small monitors but
need not be designed to
look ludicrous on large
ones. Liquid Design can
solve this problem.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 54
Liquid Design is accomplished through HTML tables that are built with per-
centages (rather than absolute widths), framesets that use percentages
(rather than absolute widths), or CCS. Because 4.0 browsers are still in use
at the time of this writing and will be for at least the next year, and because
CSS support is less than perfect in 4.0 browsers, most designers choose
tables or framesets to get the job done. We’ve created a simplified HTML
example to show how Liquid Design differs from print-like, fixed design.
Peek ahead to Chapter 8 if the markup confuses you.
Here is a traditional, print-like approach to web design that uses table cells
with absolute widths. All extraneous code has been deleted from this radically
simplified example to focus on the points of difference between print-like and
Liquid Design.
<html>
<table width=”600”>
<tr>
<td width=”400”>
<p>Content goes here.</p>
</td>
<td width=”200”>
<p>Navigation goes here. This column is half as wide as the content column.</p>
</td>
</tr>
</table>
</html>
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 55
Next, a similar web page, but this time it’s liquid. Specifying percentages
rather than absolute widths enables the page to fit any screen while pre-
serving the relative proportions of the original layout.
<html>
<table width=”100%”>
<tr>
<td width=”66%”>
<p>Content goes here.</p>
</td>
<td width=”34%”><p>Navigation goes here. As in the previous example, this column is
half as wide as the content column. However, this table will stretch or squash to fit any
monitor comfortably.</p>
</td>
</tr>
</table>
</html>
The liquid approach handles our horizontal problem, but what about the
vertical? Simple: Remember that the first 380 pixels of vertical space is the
only area that all your visitors are certain to see without scrolling. Make
sure that your navigational menu (if any), logo (if any), headlines (if any),
and other important content fits comfortably within that vertical area. Less
important information can fall below the fold, and no harm done. Your
client’s advertisers will be clamoring for placement at the top of the screen
for this very reason. Alas, if they get their wish, those with small monitors
will see browser chrome, ad banners, and task bars to the exclusion of
almost everything else. No wonder some people hate the Web the first time
they see it.
COLOR MY WEB
As with the wide variety in screen resolutions, computers are far from uni-
form in their ability to display color. Designers work with machines that
support millions of colors (24 or 32 bits). But many computer users are lim-
ited to thousands of colors (16 bits), and a significant minority is stuck with
256 colors (8 bits) or less.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 56
Monitors that are limited to 256 colors face an additional problem in that
up to 40 of these colors are “used up” in advance by the operating system
itself. For instance, Windows reserves 40 Windows system colors for its
own display purposes in lower-end color environments. That leaves exactly
216 colors at your disposal.
The Color Cube is the bane of many web designers’ existence, but it need
not be. Paper stocks have limitations; so do type families, and so does the
Web. This is one of those limitations you can master upon accepting it as
part of the discipline the medium imposes.
Photoshop 5 (and higher) includes a web-safe color palette, and the included
VisiBone color palette is even more useful because it arranges the colors in
ways with which designers can understand and work. But how can you tell in
code alone if your colors are web-safe? Easy. Know the code. In HTML, all col-
ors are indicated in three pairs (six digits) of hexadecimal code.
What are these little characters? They are hexadecimal code for the Red,
Green, and Blue channels of an RGB monitor. The first two digits indicate the
amount of light pouring from the monitor’s Red channel; the second pair tells
how much Green appears; and the third tells how much Blue.
With #ff0000, the Red channel is going full blast (#ff is the highest possible
two-digit value in hexadecimal), and the other two channels are “turned off”
(#00). (Most of the time, you will be working with subtler color values.)
00 33 66
99 cc ff
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 57
Only the 216 web-safe colors (colors that can be described with the hexa-
decimal pairs indicated in the previous sidebar) are guaranteed to display
correctly in both Windows and Mac OS in the 8-bit environment. Any other
color will dither (be broken into dots) on a 256-color monitor and will shift
(change to an unintended and subtly mismatched color) on a system with
thousands of colors.
Thousands Weep
As of this writing, 56% of computer owners now have 16-bit color (thou-
sands of colors), and this probably makes them happy because it makes the
daily bikini models’ flesh tones look more realistic. But for web designers,
16-bit color is a nightmare.
Sure, the dithering in 8-bit (256-color) systems is downright ugly and can
make a web page unreadable, but you can avoid it by sticking to the web-
safe Color Cube, which thus ends the problem. By contrast, the unavoid-
able color shifting that occurs on 16-bit systems springs from the dripping
maws of Hell.
Figure 2.11
For reasons only a soft-
ware company could
explain, browsers and
image editors round off
16-bit color calculations
differently. As a result,
for users of 16-bit color,
image backgrounds and
HTML (or CSS), back-
grounds will never match
(www.alistapart.com/
stories/beyond/).
Say your web page has a web-safe, light brown background color. Say your
client’s product shot is supposed to sit on the page. Say the background
color in that product shot is subtly “off” from the background of your web
page. Say you’re in big trouble, cowboy.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 58
Due to differences between the way browsers calculate 16-bit color and
the way image editors like Adobe Photoshop do it, in the 16-bit color space,
browsers are off differently from the way GIF images are off. In other
words, the background color of the image absolutely, mathematically can-
not match the background color of the web page. All the web designer’s
careful illusions are revealed. There is nothing you can do about this except
wait for 24-bit color to become cheaper so that more consumers will
adopt it.
Some web designers work around this problem by using transparent back-
grounds. This is fine as long as the image does not serve also as a link. (Most
images these days do.) Why are links problematic? Today most web pages
use the CSS hover property to make links light up (meaning change colors)
when the visitor drags her mouse over them. As you’ll see in Chapter 3, this
kind of visual interactivity is helpful because it lets the user know that this
particular set of words can take her somewhere else with a click of her
mouse. When images serve as links and when links use the CSS hover prop-
erty, the background color of a transparent image will change in response
to the actions of the visitor’s mouse. Freddie Kreuger has nothing on this
unintentional visual effect. Web designers who wish to avoid this horror
will either create incredibly complex style sheets or simply use solid, web-
safe background colors in their images. And of course, these solid colors
will be subtly mismatched on the screens of all 16-bit users. Welcome to
the Web. Meantime, at least you can protect your 8-bit, 24-bit, and 32-bit
using friends by sticking to the web-safe color palette as often as possible,
particularly for large color fields, typography, and background colors.
At this point many designers scream: “These colors are ugly! This is not
what I want.” You will find, after you work with these colors, that it is pos-
sible to create pleasing combinations with them, and you will develop your
own techniques for doing so. We promise.
When saving images, you do not need to worry about intermediate colors.
If your type is web-safe orange, and your background is web-safe blue, the
edges of the type will be filled in with intermediately shaded pixels that are
probably not web-safe. They do not have to be. As long as the large areas
of color are web-safe, a little dithering around the edges of type and
images goes unnoticed by most users.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 59
While GIFs are an appropriate format for logos, typography, and illustra-
tions, the JPEG format is usually preferred for photography. It is impossi-
ble to shift colors to the web-safe palette in a JPEG. Again, this limitation
of the medium is accepted or ignored by most users. But GIF images should
generally be shifted as closely as possible toward the Color Cube. In the
next sections, we will talk about ways of doing that.
The Windows, Linux, and Sun operating systems run on PCs. PCs and their
components are built by a wide variety of manufacturers. While this keeps
end-user costs down, it also means that PCs have no standard hardware
gamma correction. Typically, their System Gamma is estimated at 2.4—
darker than Macintosh. In practice, PC gamma can be all over the place,
but it is always darker than that of Mac OS.
What does this mean to web designers? It means that if you do not com-
pensate for this cross-platform gamma variance, the subtle “study in earth
tones” that looks so moody and mysterious on your Mac will probably look
like a “study in mud” on most PCs. Because PCs are used by at least 90%
of your audience, a study in mud is not what you want.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 60
There are three ways for Mac-based web designers to compensate for
gamma issues.
In 1998, Adobe got wise to this whole cross-platform gamma issue (and
related web design issues) and came out with ImageReady, a Photoshop-
like application for creating and exporting web graphics. Like Furbo Filters,
ImageReady lets you preview the effects of gamma differences and com-
pression settings on your images, and it also lets you shift your colors closer
to or further from the Color Cube.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 61
2. Photoshop will prompt you to set up your System Gamma if you have
not done so already. In Mac OS 8 and higher, you can set your Mac’s
System Gamma to sRGB using either the Mac’s built-in ColorSync
control panel or the Adobe Gamma control panel that comes with
Photoshop.
3. Set your Mac to sRGB, and you will always be inside the Windows
gamma space. If you prefer, leave it at typical Mac gamma (or some
custom setting), and Photoshop will magically shift your images
from the Mac to the Windows color space.
If you continue to design for print as well as the Web, stick with Apple’s default
settings and let Photoshop toggle you back and forth between Mac and sRGB
gamma settings. If you’re biting the bullet and plunging into full-time web
design, by all means set your Mac to sRGB and be done with it. After you get
used to working inside a slightly darker color space, it will look just fine to you,
and you’ll never have to worry about gamma compatibility again.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 62
TYPOGRAPHY
Given what we’ve already discussed in terms of screen, color, and gamma
differences, it should come as no surprise that there are vast differences in
the way different platforms handle typography on the Web.
For one thing, different platforms offer different fonts. Two sans serif fonts,
Geneva and Helvetica, come standard with Mac OS. Geneva is not found
on any other platform, and while Helvetica is available in Linux, it may or
may not be present on Windows systems. (Arial is the standard sans serif
font that comes with Windows. There is also a version of Geneva that
PC users can download, and we believe that three or four of them have
done so.)
Confused, yet?
This did nothing for Linux or UNIX users, but it did go a long way toward
solving cross-platform font problems because Windows and Mac OS
together make up about 97% of the market. (Depending on how you define
the market, anyway.)
That still left a huge problem unsolved: the difference in typographic res-
olution between Mac OS and Windows.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 63
Points of Distinction
By default in Mac OS, there are 72ppi, and a pixel is the same as a point.
Thus 12pt. type is 12 pixels tall, 72pt. type is 72 pixels (or one inch) tall,
and so on. Of course, most Mac users set their screens to higher resolu-
tions, so this one-to-one equivalency between points and pixels soon
becomes meaningless. But 72ppi is the starting point for Macs.
Windows users start off with 96ppi resolution; thus, 12pt. type in Windows
is 16 pixels tall. Again, this varies according to the user’s choice of screen
resolutions, but 96ppi is the starting point.
In 4.0 (and older) browsers, what looks readable on a Mac looks big and
horsey on a Windows PC. Conversely, what looks tasteful and discrete on a
Windows box is often illegibly small on a Mac.
Figure 2.12
Font Wars: In 1997, CSS
expert Todd Fahrner stuck
this image in an obscure
corner of the Web. It
proved why using
points was a brain-dead
approach to CSS (too bad
so few people listened). He
sarcastically observed that
if things got much worse,
Macs would have to use
Windows-size typographic
defaults. Three and a half
years later, Fahrner’s sar-
donic prediction came true
(http://style.metrius.com/
font_size/points/
font_wars.GIF).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 64
In IE5/Mac and Netscape 6, users can change their preferences and restore
the traditional “Mac” setting for text. By doing so, they risk continuing to
be frustrated by the typographic resolution differences between their plat-
form and the dominant Windows OS. But if they’re smart enough to change
their settings once, they’re smart enough to change them back again when
needed.
IE5/Mac also introduced text zooming, which enables users to enlarge (or
shrink) HTML and CSS text on the page, no matter how the designer has
formatted that text. This liberates web users from web designers’ mistakes
and makes the medium more accessible to the visually impaired. Netscape
6 offers similar functionality, though for some reason it was left out of the
Macintosh version (at least in the initial Netscape 6 release).
Of course, 4.0 browsers are still very much among us, and the 18-Month
Pregnancy period has only just begun. Consequently, cross-platform font
size issues will continue to plague the Web for some time to come. In Chap-
ter 10, “Style Sheets for Designers,” we’ll explain how to use style sheets
to compensate for all these incompatibilities.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 65
TOUCH FACTOR
When designing a book, your choice of materials and textures is limited
only by the client’s budget. When designing a website, you have no tex-
tures whatsoever. There is no “touch factor” in work designed for the dig-
ital screen. But this lack of sensory input does not mean that the site must
be a cold, detached, clinical object. There are many tools to help you bring
humanity and warmth to the Web.
These approaches enable anyone to create a site that feels like a living
entity. Failure to use these tools results in a site that feels cold and dead—
high tech, but not high touch.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 66
66 WHY: Designing for the Medium: Accessibility, the Hidden Shame of the Web
How do you design for the blind? It sounds like a paradox, but on the Web
it is actually fairly easy.
Here are some of the things you can do to make your site accessible:
■ Your <IMAGE> tags should include <ALT> text for the benefit of the
visually impaired; adding <TITLE> attributes is a good idea as well.
<ALT> and <TITLE> attributes can be spoken by audio browsers used
by the blind, so they don’t have to miss out on any content. For
example, your web page on the wreck of the Titanic includes a pho-
tograph of that ill-fated ship. A bad <ALT> attribute reads “Image,
24K.” Well, what good is that to the disabled user? So your site has
an image, so what? A good <ALT> tag will read “S.S. Titanic.” The
<TITLE> attribute can provide additional description: “Photograph of
the Titanic on her maiden voyage.”
■ Even if most users will be navigating via snazzy visual menu bars at
the top of your site, be sure to include simple HTML links somewhere
on the page so that the disabled—or folks with older, non-JavaScript-
capable browsers—can still find their way around the site.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 67
For more on accessibility and the law, see Alan Herrell’s article in A List
Apart, “Accessibility: The Clock is Ticking” (www.alistapart.com/stories/
access/).
USER KNOWLEDGE
A website must be designed so novice users can find their way through
it without trouble. At the same time, a good site offers shortcuts and power
tools for more experienced users. How do you serve these two very differ-
ent audiences at the same time? We’ll discuss that in the very next
chapter.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
04 0732 CH02 4/24/01 11:15 AM Page 68
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 69
chapter 3
Where Am I? Navigation
& Interface
“I LEFT MY BABY DAUGHTER in the car while I went to buy dope. Then I drove
away. I’d gone about five blocks when I realized my daughter wasn’t in the
car any more.”
So begins a brief personal narrative that fills most of the screen of a web
page. At the conclusion of this woeful tale, we see a link or button labeled
More Stories. We are likely to click it.
Before doing so, we notice that a small Narcotics Anonymous logo appears
in the upper left area of the screen and that four menu items appear in a
column on the right. The Face of Addiction, reads one. There Is a Solution,
reads another. Meetings, says a third, and Membership, reads the fourth.
Meetings takes us to a map of the United States. Clicking any city takes us
to a schedule of Narcotics Anonymous meetings in that city. The Narcotics
Anonymous logo, consistently placed at the upper left of every screen on
the site, takes us back to the first page, with its riveting personal narrative
and easily understood menu structure. Perhaps when we return to the
home page we are served a different personal story. This story may be a bit
longer than the first we encountered. After all, our attention is now
engaged because we have committed at least a few minutes of our time to
the site. At this point we are ready to involve ourselves with a slightly more
elaborate narrative.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 70
This is one possible interface for the home page of Narcotics Anonymous,
a 12-Step program that helps addicts recover, one day at a time. Recovery
begins by facing the problem and telling the truth about one’s life—how-
ever painful that truth may be. The honesty of these stories enables the sto-
ryteller to get well and his listeners to identify with the problem his story
demonstrates. The prototype web interface parallels this process because
the designers have done their homework and found out how the “product”
(Narcotics Anonymous) actually works.
This simple site architecture, with its emphasis on human interest, provides
an immediate way for addicts to identify with an anonymous speaker and
thus begin to admit that they suffer from the same problem. It helps the
loved ones of addicts to recognize their husbands and wives as addicts and
start to understand why Harry or Sally is “that way.” The site does not
preach, nor does it overwhelm visitors with too much initial detail. Its care-
ful structure engages the minds of a specific audience and allows them to
get whatever level of support they need.
Every site should be this effective, whether it offers help for personal prob-
lems or half-price airfare. Every site should immediately engage its
intended audience with compelling content that invites exploration. A web
designer’s first job is to find the heart of the matter: the concept. The sec-
ond job is to ensure that readers understand it too. That is the purpose of
architecture and navigation.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 71
The interior of the site might offer similar content to that contained in our
imaginary prototype, but the content would be buried several layers down
in the site’s hierarchy, where only the most dedicated would stand a chance
of finding it. Instead of capturing and presenting the essence of the client’s
message, the site would merely mimic the boring “professional” surface
appearance of thousands of other sites. Instead of potentially saving lives,
the site would merely be one more roadblock in an addict’s troubled life.
How would cutting-edge web shops approach the project? Possibly by cre-
ating a 250K introductory Flash movie featuring a spinning hypodermic
needle. The needle might morph into a rotating navigational device. Or it
might fill with blood that drips to form letters spelling out some horrific
statistic on the mortality rate of drug addicts. Such a site might win awards
in a graphic design showcase, but it would not help a soul.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 72
72 WHY: Where Am I? Navigation & Interface: The Rise of the Interface Department
When traditional designers and art directors take their talent to the Web,
their consummate understanding of the power of the image would seem
to position them as the ideal architects of the sites they design. After all,
who knows better how to focus and deliver the appropriate message before
the consumer has time to click the browser’s Back button? In good shops,
skilled web designers are empowered to do what they do best, but this is
not the case in every web agency. Some shops constrict the designer’s abil-
ities by forcing her into a more limited role.
Sadly, many otherwise savvy web agencies do not have Creative or Design
Departments at all. Nor do creative directors or lead designers show up
often enough on some of these companies’ organizational charts. What
they frequently have instead are Interface Departments, implicitly or
explicitly staffed by “interface designers.” This departmental label trivial-
izes and may even constrict the web designer’s potential usefulness as
brand steward, conceptualist, structural architect, and user advocate.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 73
Designing interfaces is only part of a web designer’s job in the same way
that working with actors is only part of a movie director’s job. A director
who can’t work with actors will make a lousy movie, and a web designer
who can’t devise the most communicative interface for each particular site
will serve up mediocrity. Websites provide content; interfaces provide con-
text. Good interfaces support the visitor’s (and client’s) goals by visually
and structurally answering two urgent questions:
1. What is this? What kind of site is this? What is its purpose? What
messages are being conveyed or services offered? For whom is this
site intended? If it’s intended for me, does it offer the product or
information I’ve been seeking, or is it all show and no substance?
When a web designer fully understands the nature of the product or serv-
ice, as in the example of the Narcotics Anonymous prototype above, then
content and context, meaning and architecture, are one. Not only does the
Narcotics Anonymous prototype quickly reveal the site’s purpose by
emphasizing appropriate text, it also understands and fulfills its potential
viewer’s gut-level needs by functioning simply and transparently. A wife
who fears her husband is becoming an addict does not have time to waste.
If the site confuses her, she’s gone.
When a web designer does not fully understand the nature of the product
or service—or understands but is not empowered to act upon that under-
standing—we get sites that excite and engage no one. Or we get poten-
tially engaging sites that confuse and estrange the very people they worked
so hard to attract.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 74
There are too many such sites on the Web. What businesses must under-
stand is that vague, non-engaging interfaces are a death sentence because
they alienate potential readers, members, or customers rather than reas-
suring them that they’ve come to the right place. Good web design plunges
the visitor into the exact content appropriate for the most efficient (and
personal) use of the site and continues to guide him or her through each
new interaction.
Newspapers carry many stories but call the reader’s attention to the most
important ones. Content sites can work the same way.
Stores sell many products, but special displays on featured products arrest
shoppers’ attention as they enter. Commercial sites can work the same way.
The Mary Quant site is a study in quick visitor orientation and structurally
grounded design. the dominant but fast-loading photograph telegraphs
“1960s” and “mini-skirt,” which are the essence of fashion designer Mary
Quant’s legacy. The flower motif reinforces the 1960s theme as well as
Quant’s identity. A large flower fills in the space behind appropriately min-
imal text content; this is a fashion site, not a Ph.D. dissertation. Smaller
flowers brand the five simple structural divisions: History, Makeup, Press
Office, Shops, and Homepage.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 75
Figure 3.1
The Mary Quant site—the
perfect combination of
solid design and ease of
use (www.maryquant.co.uk).
The History label is faded to reinforce the visitor’s position within the site’s
hierarchy. The Previous and Next buttons are placed left and right where a
western audience would expect them and where even non-English speak-
ers (at least those who read from left to right) will likely understand what
these buttons do.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 76
Figure 3.2
Multi-level navigation in
action: the Gap site pres-
ents visitors with an over-
all menu bar but does not
limit them to it. Clicking
the model’s photograph…
Figure 3.3
…links the visitor to a
page displaying the jacket
the model is wearing,
along with relevant text
information and the
opportunity to buy the
item (www.gap.com).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 77
For several years, nearly all sites offered left-hand navigation (menu items
on the left side of the web page, content on the right). Was left-hand nav-
igation easier to use or understand than any other configuration? No. In
fact, some studies suggested that navigation worked better on the right.
Navigation cropped up on the left because it was easier for web designers
and developers to create HTML that way—and later, it was easier to con-
trol <FRAMES> that way.
There are good marketers and there are dolts in suits. Similarly, there is
good user acceptance testing and there is worthless pseudo-science that
promotes banality. Unfortunately, worthless pseudo-science is as easy to
sell to web agency CEOs as it is to clients. It’s hard to tell until you’re actu-
ally working at a web agency whether its testing practices are informative
or a shortcut to Hell. An engaged and thoughtful web designer will develop
and fight for the best navigational structure for each site, knowing that
each site is unique because its content and audience are unique.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 78
Figure 3.4
Ye Olde Left-Hand Nav Bar
in action, seen here on the
Winter 2000 edition of
Icon Factory, creators of
free, funky Mac desktop
icons since 1995
(www.iconfactory.com).
The left side is no better or
worse than any other
menu placement. But for
several years, nearly all
sites stuck their menus on
the left because, well,
nearly all sites stuck their
menus on the left. Most
left-hand navigation bars
are nowhere near as cute
‘n cuddly as Icon Factory’s.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 79
Figure 3.5
Where do I go from here?
Most likely, my browser’s
Back button. Busy inter-
faces bore or confuse
all but the most die-
hard bargain seeker
(www.overstock.com).
Clients are not alone in sometimes forgetting that sites are created to serve
human needs. Web designers also can lose sight of their work’s primary
objective.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 80
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 81
There were other reasons a number of web businesses failed in late 1999
and early 2000. Some businesses that served no earthly purpose and
appealed to no imaginable audience managed to suck up venture capital
anyway—until the investors woke up. But many sites with legitimate busi-
ness models bit the dust when it was discovered that nobody could navi-
gate them except, perhaps, the designers.
While great web design, like all great design, is specific in nature, web
design (like all design) has developed a series of guidelines and best prac-
tices that can aid you as you begin to shape your own sites. Some of these
practices are rooted in common sense, others in human interface guide-
lines developed during the personal computer revolution of the 1980s. We
will examine these guidelines in the following sections, bearing in mind
that they are suggestions, not rules.
Interface as Architecture
Navigation is the experiential architecture of a site. Web designers use
consistent visual cues to guide visitors through the site, as an architect
guides a building’s visitors from the lobby to the elevator bank. Subtle
visual hints cue a building’s visitors as to which areas of an office are open
to the public, and which are private. Folks can find their way to a bathroom
or a public telephone without asking for help. The goal of a navigational
interface, like the goal of real-world architecture, is to enable people to do
what they need to do.
As you develop web interfaces, ask yourself if you’re helping people find
the site’s offices, elevators, and bathrooms or leaving them to fend for
themselves. Poorly structured buildings win few tenants; poorly structured
sites win few repeat visitors.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 82
82 WHY: Where Am I? Navigation & Interface: Ten (Okay, Three) Points of Light
1. Be easily learned
2. Remain consistent
Be Easily Learned
A designer who buys Adobe Illustrator will accept the product’s learning
curve; an online shopper will not invest the same kind of energy into
figuring out how www.halfpricefurniture.com works. Overly complex inter-
faces may please the designer who came up with them, but they rarely win
favor with those trying to find their way through the site.
Why do most of us hate the remotes that come with our TVs and VCRs?
Because there are too many buttons to push, and there is rarely an intu-
itive logic to the placement and size relationships of these buttons. We are
always hunting for the button that resets the clock or programs the chan-
nels (and discovering that this function actually lies buried deep in a series
of onscreen menus). We approach even the most basic tasks with the sense
that we are somehow being forced to prove our mastery over a trouble-
some object.
Unless we wish to watch one TV channel for the rest of our lives, we have
no choice but to click our way through the madness. But web users always
have a choice—they can visit a website that is easier to use.
Remain Consistent
Each site presents the visitor with a unique interface. Compelling content
or useful services are the only reason users bother learning how your site
works. After they’ve gone to that trouble, they will not appreciate your
changing the interface, misguidedly groping after “freshness.”
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 83
Web users are not mind readers. After they’ve learned that flowers serve as
visual links (as in Figure 3.1), you’d be foolish to switch to a folder tab
metaphor. If there are five main menu items per page, suddenly adding a
sixth and seventh at the same hierarchical level could make naïve web
users think they’ve somehow linked to an unrelated site. Sophisticated
users will think the site is being redesigned, and they’ve somehow caught
you in mid-process.
Many times beginning web designers feel that each section of a site
requires its own distinctive signature. It usually makes more sense to pro-
vide a consistent interface, acknowledging the new section (if at all) with
a subtle color change or a simple section title.
Figure 3.6
Digital Web Magazine, a
popular online resource for
web designers, offers a
consistent interface
between sections…
Figure 3.7
…but differentiates each
section with a subtle color
change. Because you can't
tell that the color is
changing with the color
scheme of this book,
you'll have to visit the
site and see for yourself
(www.digital-web.com).gure
3.5
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 84
But what we lack in ink and paper choices, we make up for with an almost
limitless variety of interactive options. On the Web, the images we create
can respond to the visitor’s virtual touch. This not only adds richness to our
design; it helps the visitor comprehend the interface.
In the real world, buzzers buzz and doorknobs turn. Good web design mim-
ics this kind of feedback, using techniques such as the JavaScript rollover
(image swap) to create a sense that the site is responding to the visitor’s
actions.
Such digital responsiveness is nothing new. It began with the desktop com-
puter revolution and specifically with the Apple Macintosh Graphical User
Interface (GUI).
If you were still awake a few paragraphs above when we made the big stink
about consistency, hold your nose ‘cause here we go again. Logic and con-
sistency are two reasons that Windows, Mac OS, and other UI-based com-
puting systems are more popular than command-line interfaces. GUIs
succeed by being clear (users don’t wonder what a certain button does) and
remaining consistent (if the File menu is on the left, it stays on the left).
Because your visitors are using a computer to view your site, they expect
such consistency.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 85
Figure 3.8
The interface at panic.com
not only suggests the
Macintosh GUI, it actually
emulates it. Because the
site hawks Macintosh
software, the emulation
reinforces the site’s
themes and purposes.
Mac users will think it’s
fun; Windows users will
go somewhere else—
appropriately, since there
is nothing for them here
(www.panic.com).ure 3.5
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 86
Though the browser creates many GUI elements (underlined links, changes
to the cursor state), the rest is up to the designer. Indeed, in a graphical
browser, one could consider commercial sites custom GUIs whose purpose
is to enable visitors to perform tasks while subliminally absorbing the
client’s brand.
Figure 3.9
Visitors know what this
cursor change means
(www.glish.com).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 87
Figure 3.10
So why confuse them
with this one? Changing
familiar GUI elements
“because you can” is a
dog’s rationale for licking
himself. In this case, it’s
a Glassdog’s rationale
(www.glassdog.com).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 88
Icons, with or without text labels, frequently serve as quick, visual cues to
the site’s offerings. They also support international visitors for whom Eng-
lish is not a first language. Sites with massive amounts of content on their
home pages, such as portals and magazine sites, can use icons to better
organize and clarify sections (see Figures 3.11 and 3.12).
Figure 3.11
The icons seen here help
draw the eye to the sec-
ondary menu, and some of
them even communicate
in ways a non-English
speaking visitor might
understand. Designing
icons that communicate is
difficult. Competing ele-
ments must fit within the
narrow width of a lowest-
common-denominator
monitor, leaving little
room in which to develop
legible imagery
(www.eloquent.com).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 89
Figure 3.12
We are clearly in the land
of the recreational web-
site, as denoted by the
tagline “professional
martini consumer.” Few
sites would devote all
that screen space to a
menu structure. Indeed,
this site recently went
offline for a redesign
(www.drymartini.com).
Say you are designing a site for a chain of Wild West theme hotels. In vis-
iting the hotels and studying the chain’s promotional brochures and adver-
tising, you can’t miss the fact that Western paraphernalia is used to brand
the franchise—from the bronze horse-head coat hooks in guest closets to
the cowhide couches in the lobby. Thinking like a brand steward, you decide
it might be fun to use lassos rather than arrows to indicate “previous page”
and “next page” on the site. To you, as a visual person, it is readily appar-
ent that the rope at the edge of the lasso “points” forward or backward.
Well, cowboy, test that design on some users before you fight for it. If users
are confused by your branded iconic elements—if the lassos strike users as
meaningless ornamentation rather than functional GUI elements—be pre-
pared to rustle up some traditional left and right arrows, even if it chaps
your spurs.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 90
Adding “invisible” text labels to an icon via the <ALT> attribute of the
HTML image tag or the <TITLE> attribute of a linked image can help explain
the icon’s purpose to inexperienced users. In modern graphical browsers,
these <ALT> and <TITLE> attributes generate popup “tool tips” or help-bal-
loon-style blurbs, enhancing the page’s interactivity in a meaningful and
user-friendly way.
Such tags also make the content more accessible to the visually disabled,
to those using non-graphical browsers or Personal Digital Assistants (PDAs)
such as the Palm Pilot, and to folks using conventional browsers who surf
with images turned off. (As mentioned in Chapter 2, accessibility makes
good business and moral sense. Besides, it’s U.S. law.)
When invisible text labels are not enough, consider adding visible text.
Today, most web agencies find it better to err on the side of clear copy than
cute copy. After all, if the visitor does not immediately grasp what “The
Screening Room” means, she could leave the site without having discov-
ered one of its most important content areas. While alternatives to tradi-
tional labeling may be appropriate for some types of sites (gaming sites,
fun sites for kids), many corporate sites depend on such traditional labels
as Home, About, and Clients to facilitate easy user navigation. Dull as dish-
water, we know. Be creative clearly, and it need not be dull at all.
■ Clarity
■ Brevity
■ Bandwidth
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 91
Because most web users have little time and less bandwidth to waste, good
interfaces are rarely overwrought. Given the choice between a simple,
functional design and one that is ornate, most folks prefer the simple web
layout that loads quickly and is easy to understand. Web users don’t tell
you this by peering over your shoulder; they tell you this by visiting the site
or neglecting it.
Many web designers initially feel constrained by this. Some feel they can-
not truly express their vision unless every page sports a 128K background
JPEG, an animated menu bar, and a series of spinning logos and pulsing
photographs. We’ve all had that feeling. It passes as you discover the joy
of communicating richly while using a few elements well, or it never
passes, and you locate clients with tastes as baroque as yours. When citi-
zens avoid visiting the resulting sites, your client and you can toast your
superiority to the rest of humanity and then hurry on to the next failure.
When bad web designers die and go to Hell, they will spend eternity search-
ing for the Heaven option on an endless menu bar of purgatories. (That is,
if they’re not simply stuck waiting for an infernal intro to finish down-
loading.)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 92
The more white space, the greater the chance that readers will remain
engaged. Use CSS by itself or in combination with table-based layouts to
create pages that demand to be read.
Figure 3.13
Readable typography, an
elegantly spare layout, and
plenty of white space add
up to a site that welcomes
readers—a quality that is
depressingly rare on the
Web (www.harrumph.com).
Contrast this with
Figure 3.15.
Learn when to stop one page and start another. Despite what some pun-
dits tell you, readers will scroll to read an engaging story, but they will not
scroll forever. After two or three screens, it may be time to present the
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 93
reader with an arrow (or other page indicator) allowing them to move on
to the next page of text. Doing so can relieve eye fatigue, enhance the
drama of the presentation (www.fray.com), or simply give your client
another page on which to sell ad banners.
Laid out well (via text chunking and CSS), bad text can squeak by. Laid out
badly, it kills websites dead. We cannot overemphasize the impact (and
tragic rarity) of good writing on the Web nor the harm done by verbose and
inexpressive texts, drizzled into layouts like so much phlegm. Learn web
typography, practice text chunking, and work with good writers and edi-
tors. Do not let your clients or your project managers skimp on the writing
budget unless you find failure exciting.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 94
Figure 3.14
The front page
of Sapient.com
(www.sapient.com),
a leading web agency,
shows mastery and promise.
Clean typography and high-
quality photography, bal-
anced as skillfully as in a
classic Ogilvie print ad,
direct the visitor’s attention
to the most important con-
tent. The carefully balanced
page also makes use of
Liquid Design (see Chapter
2) to accommodate
variously sized monitors.
So far, so good.…
Figure 3.15
…Alas, once past the front
page, visitors encounter too
many pages like this one,
where blocks of undifferenti-
ated text, laid out with little
care and no love, beg to be
ignored rather than read.
Since 99% of the Web con-
sists of text that is intended
to be read, the lack of atten-
tion to good textual presen-
tation is tragic—hurting not
only the site owner, but the
would-be reader. Contrast
this with Figure 3.13.
(www.sapient.com).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 95
Nobody clicks more than they have to—hence the so-called “Three-Click
Rule,” described later. And nobody scrolls for fun and profit. Visit an ama-
teur home page and see how excessive scrolling drags its nails across the
blackboard of the user’s experience.
How many screens of text will readers scroll before wearying of scrolling
and seeking the blessed release of clicking to the next page? Three. Just
kidding. Only a pseudo-scientist would pretend to know. As web designers,
we use our best judgment on each site. That, after all, is what we’re
getting paid for.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 96
One reason frames are popular is that they allow web designers to keep the
interface onscreen in a consistent location, even when the user is scrolling
up or down like a madman. For instance, a horizontal menu bar at the top
(www.microsoft.com) or bottom (www.the-adstore.com) of the screen will
stay in place no matter how long the page may run and no matter how
much scrolling the user performs. Frames are on their way out (in W3C
parlance, they have been “deprecated”), but you can achieve the same
effects with CSS, a web standard.
No print designer would lay out book pages that way, but inexperienced
web designers do so frequently, whether from misguided creative impulses
or because they’ve made assumptions about their visitors’ monitor sizes.
This is another reason that Liquid Design (detailed in Chapter 2) comes
highly recommended; it always fits neatly into any user’s monitor.
It’s also the reason that clients, designers, and IT departments that set
“monitor baselines” of 800 x 600 are blockheads. If even 5% of the audi-
ence is expected to scroll horizontally simply to read marketing copy, the
client or web agency is effectively sending millions of potential customers
to a competitor’s site.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 97
Imagine that you have designed a lovely, frames-based site and that your
navigational menu exists in its own frame. A visitor using a text browser
enters the site. He cannot see frames because his browser does not sup-
port them. You, however, have thoughtfully included a <NOFRAMES> tag
in your HTML frameset. Inside the <NOFRAMES> tag you cut and paste the
main content from the home page, along with an HTML-based text menu.
The visitor can now use your content, even though he cannot see your
frames-based layout. (Again, we remind you that frames are on their way
out anyway.)
Options and alternatives increase the odds that someone will actually use
what you’ve designed. Larger web agencies employ quality assurance (QA)
staffs who spend all day hunting for online porn. Better QA staffers search
for flaws in your design by testing it in a wide variety of old and new
browsers on various platforms. Do not hate these site testers—they are your
friends. Build alternatives into your navigational scheme, and you will win
their admiration and more, importantly, that of your site’s audience.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 98
98 WHY: Where Am I? Navigation & Interface: Hierarchy and the So-Called Three Click Rule
It’s widely agreed, even by people who are not idiots, that web users are
driven by a desire for fast gratification. If they can’t find what they’re look-
ing for within three clicks, they might move on to somebody else’s site.
Hence the so-called “Three-Click Rule,” which, as you might expect, states
that users should ideally be able to reach their intended destination within
three mouse clicks.
With the average site offering hundreds if not thousands of items and
options, the Three-Click Rule sounds preposterous. But it is actually fairly
easy to achieve if you start by constructing user scenarios before you begin
to design the site.
What will people who use this site want to do? Where will they want to
go? Based on those scenarios, the site is structured into main areas of con-
tent. These are then organized into no more than five main areas. (See the
next section, “The So-Called Rule of Five.”) Submenus in each of the five
main areas get the user close enough that he or she is at least reassured
by the third click, even if it takes a fourth click to get to the final, desired
page.
Let’s play it out. You are designing a site for people who live with house-
cats. In the scenario portion of development, the team agrees that cat own-
ers might want to read about Mister Tibbles’ genetic heritage. In the
top-level hierarchy, you create an item called Breeds. When Aunt Martha
clicks Breeds, the site offers Long-Hair, Short-Hair, Tabby, and Exotic
options. A second click takes her to Short-Hair, a third to Mister Tibbles’
particular breed.
Like all so-called “laws” of web design, the Three-Click Rule is a sugges-
tion, not an ironclad rule. It is, though, a suggestion based on the way peo-
ple use the Web, and, particularly for informational and product sites, you
will find that it works more often than not. If nothing else, the rule can help
you create sites with intuitive, logical hierarchical structures—and that
ain’t bad.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 99
By contrast, Sapient’s main menu (back in Figure 3.14) offers four choices:
Clients, Expertise, Company Info, and Careers. Giving users three, four, or
five main choices makes it easier for them to decide where they want to
go. Hitting them with ten or more choices makes their next move harder
to predict—for them and for you. Confuse them enough, and it becomes
easier to predict where they will go, namely: anywhere else.
On multi-purpose sites (and there are many of those), several layers of nav-
igation may peacefully coexist. Looking yet again at Sapient (Figure 3.14),
four choices are enough to guide visitors to main areas of the site but not
enough to help those seeking one-click access to various client/vendor suc-
cess stories. The icon-driven menu on the right ignores the Rule of Five
without incident.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 100
100 WHY: Where Am I? Navigation & Interface: The So-Called Rule of Five
On a shopping site, the main menu may offer three choices: Women’s,
Men’s, and Kids’. But submenus can be far more extensive: the Women’s
section might offer Outerwear, Sportswear, Business Attire, Casual Wear,
Accessories, Cosmetics, Health Aids, and sundry other stuff without con-
fusing any shopper. As the shopper burrows deeper into the hierarchy, these
submenus can sprout submenus of their own, for example Cosmetics could
include Hair Products, Makeup, Toners, Cleansers, and beyond. Such sub-
menus may run deep, as long as they appear when users expect them to
appear and behave consistently from section to section.
Some site designers and architects distinguish between goal- and task-ori-
ented navigation. With goal-oriented navigation, the user wants to go
somewhere (Clients, Expertise, or Company Info, for example). With task-
oriented navigation, the user wants to do something (apply for a job, log
in, or read case studies). Combining the two types of user needs in the same
navigational context can be more confusing than helpful. In such cases,
task and goal-oriented navigation coexist separately (see Figure 3.16), and
the Rule of Five pertains to each navigational stream rather than to the
page as a whole.
Figure 3.16
Goal-oriented navigation
(Expertise, Process, Proof)
and task-oriented naviga-
tion (Hire Us, Work Here,
Login) carefully separated
and balanced. The user
can quickly follow a
desired activity path
without becoming con-
fused or overwhelmed.
Such complex structures
are hard to pull off
(www.hesketh.com).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 101
Figure 3.17
Subtle highlighting on the
menu bar reminds you that
you’re on the Home Store
page. Click to a different
page, and a different menu
item will be highlighted.
Note, too, how much air
the design team has
managed to work into the
page, in spite of the vast
number of links and menu
items the page must carry
(www.bloomingdales.com).
Compare with Figure 3.16
and contrast with Figure 3.5.
It’s all about comfort. Better hotels offer fluffier pillows; better sites pro-
vide constant spatial and hierarchical reassurance. Breadcrumbs, called
this because they resemble the trails left by Hansel and Gretel, not only
serve as hierarchical location finders, but they also allow visitors to jump
to any section further up in the hierarchy (see Figure 3.18).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 102
Figure 3.18
Breadcrumbs remind you
that you’re on the Miles
Davis page of the Artists
section. Essential to
complex directories,
breadcrumbs can enhance
branding, entertainment,
and content sites by pro-
viding alternative naviga-
tion for those using
less-capable browsers.
They reassure beginners
while enabling sophisti-
cated users to skip tedious
hierarchical layers and
move quickly to the exact
content they seek
(www.jazzradio.net).
CONSISTENT PLACEMENT
The location of the navigation in the digital nation permits much permu-
tation without causing perturbation. Navigation can exist in a horizontal
strip at the top or bottom of the site. It can live in a navigation bar on the
left or right side of the page. It also can float in a JavaScript remote popup
window (as long as alternatives are provided).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 103
Figure 3.19
What’s the “best” place
for navigational menus?
That’s up to the web
designer. Caffe Mocha
runs its menu bar
horizontally across the
middle of the page
(www.caffemocha.com).
For over 100 years, advertisers have been working to build our joyful world
of branding. When your stomach hurts, you reach for Alka-Seltzer (not an
antacid). Sneeze, and you reach for Kleenex (not a disposable paper tissue).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 104
Like millions, we may express our individuality through Levi’s. You may
choose Gap to show the world how different you are. Neither of us, as we
don our separate uniforms, is likely thinking about the folks who picked the
cotton, or groomed the silkworms, or trimmed the fleece from the sheep.
Consciously or unconsciously, we’re identifying ourselves with images cre-
ated in small offices, thousands of miles from where the cotton grows and
the silkworm arches toward the sun—images created by brand advertising.
Branding, branding, branding. McDonald’s does not sell cereal mixed with
the flesh of cows; it sells food, folks, and fun. Marlboro sells the myth of
the freedom of the Wild West. Camels are not for everybody, but then, they
don’t try to be.
And how come Seinfeld can quip wisecracks about supermarket checkout
lines but will never mine his personal sexual experiences for comic mate-
rial? Hey, it’s not part of the brand.
How does this relate to the task of web design? As a designer, you know
the answer to this one already. Whether you’re building a corporate site or
a multimedia online funhouse, your first task is to understand and trans-
late the existing brand to the web medium or to create a new brand from
scratch.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 105
■ Easy to use means easy to use. Why even mention it? Because if vis-
itors find their way to content they seek on the IBM site, it reinforces
the overriding brand idea that IBM provides solutions. If users get lost
or don’t know which button to push, it will send the opposite mes-
sage. Sending the wrong brand message could harm a brand identity
the company has carefully built up over generations.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 106
The Web Standards Project (WaSP), mentioned in Chapter 2, evolved from con-
versations between a number of frustrated web designers and developers.
While some members brought high-level technological knowledge to the proj-
ect and others brought “marquee value” (their names alone adding instant
credibility to anything the WaSP might say or do), your humble author focused
on creating a brand identity that would be both memorable and consistent
with the task at hand.
Many names were bandied about; we pushed “The Web Standards Project” for
a variety of reasons, not least of which was its ability to be referred to in short-
hand by the acronym WaSP. Call us shallow, but we believed that this aggres-
sive little insect was the perfect metaphor for our group. We also knew that
a memorable identity was needed to keep the effort from becoming so tech-
nologically-focused as to confuse potential members.
After all, by agitating for compliance with web standards, we were taking on
giant companies such as Netscape and Microsoft in spite of being a small
grassroots effort. Which tiny creature has the power to disturb a giant? The
wasp. It’s a purposeful, productive beast with a powerful stinger, and while
you may be able to swat away one wasp, you don’t want to mess with an angry
nest. The site’s verbal tone and visual approach came straight out of this sim-
ple little brand image—from the color palette (wasp-yellow, gold, and black)
to the tone of voice (www.webstandards.org).
When Kioken Inc. (www.kioken.com), a leading New York web shop, was
charged with designing a site for the high-end retailer, Barney’s, they
carefully considered the client’s brand identity as a provider of well-made,
tasteful, and luxurious clothing. To put it bluntly, Barney’s goods are well
above the means of most of us working stiffs, and Barney’s customers like
it that way.
If you were not an experienced web user, owned an old PC, had not down-
loaded the latest Flash plug-in, and were stuck with a slow dialup modem
connection, Kioken (and their client) figured that you were not really a Bar-
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 107
ney’s customer anyway. A certain elitism was as much as part of the inter-
face as it is of the store. The Barney’s site may not exemplify democratic
humanism, but it is a perfect web translation of the client’s brand.
Interfaces that deeply and meaningfully reflect the brand will encourage
repeat user visits and repeat assignments from your clients. As a web
designer grounded in traditional art direction and design, you are better
equipped than many working professionals to create brand-appropriate
web interfaces: interfaces that don’t just look like the brand, they behave
like it.
Interfaces that look and act like the brand and that guide the right audi-
ence to the most important content or transactions form the foundation
for the best sites on the Web—the ones you are about to design.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
05 0732 CH03 4/24/01 11:16 AM Page 108
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
06 0732 Part II 4/24/01 11:17 AM Page 109
Part II
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
06 0732 Part II 4/24/01 11:17 AM Page 110
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
07 0732 CH04 4/24/01 1:02 PM Page 111
chapter 4
1452
GUTENBERG CONCEIVES OF MOVEABLE TYPE based on a punch-and-mould
system. Working with paper (brought to Europe from China in the twelfth
century), oil-based ink, block print (brought to Europe by Marco Polo in the
thirteenth century) and a wine press, he sets the stage for the mass pro-
duction of books and the wide dissemination of learning.
1836
Cooke and Wheatstone patent the telegraph, thus bringing telecommuni-
cations to the world. For the first time in history, two people can carry on
an argument even when they are miles apart.
1858
The first Atlantic cable is laid across the ocean floor, facilitating telecom-
munications between Europe and the United States. Unfortunately, the
cable goes on the fritz after just a few days. (And you thought your cable
service was bad.) A second attempt in 1866 succeeds. That cable will
remain in service for close to a century.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
07 0732 CH04 4/24/01 1:02 PM Page 112
112 WHO: How This Web Thing Got Started: Why We Mentioned These Things
1876
Alexander Graham Bell demonstrates the telephone. The first busy signal
follows soon after.
1945
Vannevar Bush, Science Advisor to U.S. President Roosevelt, proposes
a “conceptual machine” that can store vast amounts of information
linked by user-created associations. He calls these user-generated con-
nections “trails and associations.” Eventually they’ll be called “hyper-
links.” (As We May Think, www.theatlantic.com/unbound/flashbks/
computer/bushf.htm).
1962
The Advanced Research Projects Agency Network (ARPANET) is established,
which will eventually be known as the Internet. Dr. J.C.R. Licklider is
assigned to lead ARPA’s research into the military application of computer
technology.
1965
Scientist Ted Nelson coins the word hypertext to describe
“nonsequential writing—text that branches and allows choice
to the reader, best read at an interactive screen.” (See http://
www.acclarke.co.uk/1960-1969.html and http://ei.cs.vt.edu/
~wwwbtb/book/chap1/htx_hist.html for more information.)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
07 0732 CH04 4/24/01 1:02 PM Page 113
1966
ARPA scientist Robert Taylor, no doubt depressed when women find out he
is not the movie star Robert Taylor, figures out a way for researchers at var-
ious locations to collaborate by means of electronic computer networks.
Inexpensive terminals are linked to a few pricey mainframe computers. Sci-
entists begin exchanging documents and email messages. The first public
demonstration of what is now being called ARPANET will take place in
1972. The Internet is born.
1978
On January 3, Steve Jobs and friend, Woz, take Apple Computer public, thus
launching the personal computer “revolution.” As Gutenberg’s invention
brought human knowledge out of the monastery and into the hands of
ordinary citizens, Jobs and Woz’s invention takes the arcane business of
data crunching out of the realm of Big Science and makes it available to
folks like us. The subsequent Macintosh computer (1984) offers a Graphi-
cal User Interface (GUI), making it easier still for ordinary people to use a
computer. The Graphical User Interface, based on work done in Xerox Parc
in the 1970s, enables people to perform tasks by clicking onscreen icons
and buttons. Most civilians find this easier than memorizing and typing
cryptic commands. A Windows GUI follows in the PC realm. The point-and-
click interface will be key to the eventual acceptance of the Web.
1981
The domain name server (DNS) is developed, thus making the future
safe for web addresses (www.ietf.org/rfc/rfc0799.txt). At first these will
have cryptic numerical “names” such as 191.37.4211, but eventually
consumer-friendly domain names such as brandname.com will take their
place. This is key because advertisers would see little value in adding
“Visit us at 191.37.4211” to the end of their radio commercials but are
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
07 0732 CH04 4/24/01 1:02 PM Page 114
114 WHO: How This Web Thing Got Started: Why We Mentioned These Things
1984
The Apple Macintosh ushers in an era of “desktop publishing,” empowering
designers to set their own type and place and color-correct their own
images, rather than relying on the skills of third-party service profession-
als. Desktop publishing also empowers ordinary citizens to express them-
selves creatively, sometimes (though not always) with wonderful results.
This too will be mirrored a decade later, when the Web empowers anyone
with a computer and the willingness to learn HTML to become a “web
designer.”
As if all that was not enough, Apple makes use of Ted Nelson’s hypertex
concept in its HyperCard product, which enables creative folks to create
link-based presentations.
1986
There are now 5,000 Internet hosts (computers connected to the Internet
“backbone”) and 241 newsgroups.
1988
The NSFNET backbone is upgraded to T1 (1.544 Mbps). We’re not sure what
this means either, except that stuff gets a lot faster.
Internet Relay Chat (IRC) is developed in Israel, thus paving the way for
a future where office workers can complain about their jobs to friends
in foreign lands, instead of simply boring their spouses with these petty
grievances.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
07 0732 CH04 4/24/01 1:02 PM Page 115
1989
Tim Bray and others cofound Open Text, an Internet search engine. Search
engines cut through the chaos of the burgeoning Internet by enabling cit-
izens to actually find things. This ability to find things brings value to the
Net and will be an invaluable aspect of the coming Web. Search engines
will eventually enable citizens to find half-price airline tickets or seek out
information to help their children write school reports. The human and
commercial potential built into that premise will empower the coming
“revolution” of faster and faster networks, and larger and larger web agen-
cies such as Scient, iXL, and Razorfish.
1990
On the twelfth of November at CERN, Tim Berners-Lee (with R.
Cailliau) invents the World Wide Web, rooting the idea in hypertext:
Not content with the profundity of this invention, Berners-Lee also devel-
ops a “web browser” on his NeXT machine. With Berners-Lee’s browser, not
only can you view web pages, you can also edit and design them. Fortu-
nately, the “designing” part of the browser does not make it far out of
Berners-Lee’s lab, and thus the way is paved for professional designers and
art directors, rather than scientists, to create the visual language of the
Web. (The original CERN W3 package included a server, a browser, and a
true WYSIWYG editor.)
1991
America Online (AOL) begins offering Internet access in addition to its pro-
prietary content and newsgroup features. Millions of people begin “going
online” thanks to AOL’s easy-to-use point-and-click functionality and con-
sumer-friendly brand imagery. This is important because if the Internet had
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
07 0732 CH04 4/24/01 1:02 PM Page 116
116 WHO: How This Web Thing Got Started: Why We Mentioned These Things
remained the province of geeks, the Web would not have gained such ready
acceptance, let alone exploded into public consciousness. You would not
be thinking about a career in web design, and this book would be all about
delicious low-fat recipes rather than the Web.
1993
January: Marc Andreessen and Eric Bina, young programmers working for
the National Center for Supercomputing Applications (NCSA) invent a
point-and-click graphical browser for the Web, designed to run on UNIX
machines. It is called Mosaic because the name Pantaloons didn’t do as
well in testing. (Just kidding. Not kidding about Mosaic, they did indeed call
it that. Just kidding about why they called it that because we frankly don’t
know and this paragraph felt a little “short” to us.)
August: Andreessen and his co-workers release free versions of Mosaic for
Macintosh and Windows PCs.
1994
Marc Andreessen hooks up with Jim Clark, founder of Silicon Graphics Inc.
The two form a company called Mosaic Communications Corporation to
promote their Netscape web browser. NCSA, holders of the Mosaic trade-
mark, balk at this use of their trademark, eventually prompting the young
browser company to rename itself Netscape Communications.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
07 0732 CH04 4/24/01 1:02 PM Page 117
Two graduate students, Jerry Yang and David Filo, form Yahoo! (Yet Another
Hierarchical Officious Oracle), a directory whose purpose is to keep track
of the websites springing up everywhere (www.yahoo.com). The site is
organized somewhat like a library’s card catalog system. Other directories
of lesser quality quickly spring up in imitation.
Wired Magazine’s Hotwired site evangelizes the new medium and pioneers
techniques of web design and web architecture.
Tim Berners-Lee founds the World Wide Web Consortium (W3C), an inter-
national non-profit think tank dedicated to providing a rational roadmap
for the technological advancement of the Web.
People begin designing and producing personal sites because they can.
“Justin’s Links from the Underground” (www.links.com) is one of the fir-
st and most famous personal sites. Glenn Davis launches Cool Site of
the Day (www.coolsiteoftheday.com) to keep track of interesting or funky
content on the rapidly growing Web.
1995
Pushed into public consciousness and acceptance by the coolness of
Netscape’s Navigator graphical browser and by sites such as Cool Site of
the Day, the Web mushrooms. There are now 6.5 million hosts and 100,000
websites.
The Web functions well, but its design potential is sadly underdeveloped.
David Siegel, a typographer and early web designer, publishes “Web Wonk”
(www.dsiegel.com/tips/), an online tutorial offering techniques with which
designers can create pleasing, magazine-like page layouts on the Web by
working around (hacking) the limitations of HTML—the language with
which web pages are created. These techniques seriously conflict with the
purpose of HTML as a simple, structured language for sharing documents.
But they are all designers have to work with at this time. The rift between
the W3C and graphic designers has begun. (In 1996, Siegel publishes the
book, Creating Killer Websites. Though far from the first how-to guide, it
will be one of the first books to treat web design as a serious issue.)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
07 0732 CH04 4/24/01 1:02 PM Page 118
118 WHO: How This Web Thing Got Started: Why We Mentioned These Things
Batmanforever.com helps prove that the Web has tremendous potential for
anyone wishing to promote an idea, event, or product. There are three mil-
lion web users, and half of them—1.5 million people—view this one site
every week.
1996
David Siegel creates “High Five” to honor and showcase the
best-designed sites on the Web. (High Five is no longer active, but
archives are available at highfivearchive.com/core/index.html.) He bestows
the first High Five award on his own site. Some consider the gesture arro-
gant, but Siegel doesn’t care; his book is selling like crack. And, to some
extent because of his evangelism, the Web begins attracting greater num-
bers of design professionals and becoming better and better designed as a
result. But this aesthetic boon comes at a cost. Because most of us are
using hacks and workarounds to make our sites more attractive and read-
able, few of us are demanding the creation of robust standards that would
provide better presentational capabilities without breaking the Web’s
structural underpinnings. And since we’re not hollering for better stan-
dards, the W3C isn’t rushing them out the door, and browser makers aren’t
hastening to support them. We will all pay for this later.
“Suck” (suck.com), a brilliantly written daily site created by Joey Anuff and
Carl Steadman, offers sardonic commentary along with a radically flat-
tened hierarchy. Instead of offering a splash page, followed by a contents
page, followed by sectional header pages, and so on (the tedious architec-
ture found in most early sites), Suck slaps its content on the front page
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
07 0732 CH04 4/24/01 1:02 PM Page 119
where you can’t miss it. Minds reel. The rift between web architects and
graphic designers begins. (Architects think about streamlining and con-
trolling the flow of the user’s experience. Graphic designers think about
reinventing the interface and blowing the user away on every page. Good
web designers struggle to find a balance between these two approaches on
a site-by-site basis.)
Anuff and Steadman will later sell their creation to their employers for
more than lunch money, thus ushering in a period where “content is king,”
whether it’s actually valuable or even read, and where everybody and her
sister wants to be a millionaire. This is not Anuff or Steadman’s fault.
Netscape and Sun announce that Sun’s new object-oriented Java language
will “free” everyone from the “tyranny” of Microsoft’s Windows operating
system. Bill Gates smells the coffee. Microsoft creates Internet Explorer.
The browser wars begin. Over the next four years, Netscape will invent one
way of doing things while Microsoft invents another. Web designers will be
forced to choose which technologies to support—or will support multiple
technologies at considerable cost to their clients. Eventually, most every-
one will realize that the medium can only advance with full support for
common standards.
1997
Amazon.com begins selling books over the Web. Marketers everywhere
wake up to the promise of e-commerce and begin scrambling to launch e-
commerce companies, add e-commerce capabilities to the offerings of
their existing companies, or just put the letter “e” in front of whatever it is
that they do. There are e-books, e-investments, e-architects, and e-com-
munities. E-nough, already. A brief i-period will follow the e-period.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
07 0732 CH04 4/24/01 1:02 PM Page 120
120 WHO: How This Web Thing Got Started: Why We Mentioned These Things
There are now 19.5 million hosts, one million websites, and 71,618 news-
groups.
1998
There are over 300 million pages on the Web—and 1.5 million new ones
appear online daily.
With much money at stake, the browser war’s fragmentation of the Web
becomes intolerable. Developers spend at least 25 percent of their time
working around incompatibilities between Netscape and Microsoft
browsers.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
07 0732 CH04 4/24/01 1:02 PM Page 121
Netscape goes open source, unveiling the secrets of its code in the hopes
that thousands of programmers around the world will join together to cre-
ate a newer, better version of the Netscape browser. The open source proj-
ect for the Netscape Navigator source code is named Mozilla. The
Department of Justice begins an antitrust lawsuit against Microsoft.
1999
America Online (AOL), though partially responsible for the growth and pop-
ularity of the Web, has long been despised by Internet connoisseurs. Many
holding this view are die-hard Netscape users, who see AOL as a propri-
etary service for frightened “newbies” (neophyte Internet users). In a move
that shocks the online world, AOL buys Netscape.
Microsoft announces that its upcoming 5.0 browser for the Mac will fully
support two key web standards and offer “90 percent support” for others.
2000
The year web standards broke, 1
Internet Explorer 5, Macintosh Edition is released in March, offering
near perfect support for HTML 4, CSS-1, and JavaScript
(www.alistapart.com/stories/ie5mac/).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
07 0732 CH04 4/24/01 1:02 PM Page 122
122 WHO: How This Web Thing Got Started: Why We Mentioned These Things
2001
You buy this book. And buy a second copy for a friend. And a third for your
coffee table.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
08 0732 CH05 4/24/01 11:18 AM Page 123
chapter 5
SEVERAL YEARS BACK, Grey Advertising, Inc. felt it was perceived as a some-
what lackluster agency: large, dependable, and successful at delivering
results, but not exactly cutting-edge in a world of Chiats and Weiden-
Kennedys (the people who have made commercials for Apple and Nike).
Grey wanted to enhance its image, and as companies often do, it brought
in an outside consultant. A depressing sum of money later, the consultant
unveiled this recommendation: make the logo orange. A Grey company
with an orange logo, get it? Unexpected. Cutting edge. Fresh. Or so the con-
sultant argued, and the agency apparently agreed.
The story may be apocryphal, we hasten to add, because Grey has more
lawyers than our publisher. We mention the whole thing because, as if
Internet terminology itself weren’t confusing enough, job nomenclature at
web agencies can be dazzlingly baffling. This is thanks, in part, to consult-
ants who think an orange Grey makes an Apple and “user experience trans-
actional information architect” sounds better than “designer.”
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
08 0732 CH05 4/24/01 11:18 AM Page 124
Some companies have a dozen different titles for designers with slightly
different jobs; other companies slap one title on everybody, and often
enough the title makes little intuitive sense. Orange you Grey we’ve pro-
vided this little chapter to help you navigate the twin minefields of Inter-
net buzzwords and ever-changing job titles? You bet you are. (Our
apologies to Grey Advertising, consultants everywhere, and People for the
Ethical Treatment of Animals, whom we haven’t offended but just felt like
mentioning because it’s a good cause. Besides, if we don’t mention it here,
our cats will claw our eyes out—and they can do it.)
WEB LINGO
Extranet
An extranet is a private network of computers that is created by connect-
ing two or more intranets or by exposing an intranet to specific external
users and no one else. Business-to-business collaboration often uses
extranets.
Websites are websites whether they’re designed for the general public or
for private businesses. However, because extranets are business-oriented,
they tend to be more like software and less like magazines or television. In
other words, the challenges are closer to industrial design and technical
design and further from the consumer-oriented design many of us are used
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
08 0732 CH05 4/24/01 11:18 AM Page 125
to. In still other words, this type of design work is not for everybody, though
some designers adore and excel at it. (Excel is a trademark of Microsoft,
and even though we didn’t use it in that context in the preceding sentence,
their lawyers read everything.)
HTML
Hypertext Markup Language (HTML) is an application of Standard Gener-
alized Markup Language (SGML) and is used to construct hypertext docu-
ments (web pages).
In English: HTML is to web pages what PostScript is to print. But while Post-
Script is a complex programming language, best handled behind the scenes
by software such as Illustrator and Quark XPress, HTML is a simple markup
language best written by human beings. HTML breaks content down into
structural components, much as an outline does.
The simplicity of HTML makes it easy to learn, but that simplicity also can
be limiting. Soon, many sites will be built with more advanced tools, such
as Extensible Markup Language (XML). You need not concern yourself with
that now. Later on in this book we will show you what HTML is, how to use
it correctly, and how to employ it creatively. See Chapter 8, “HTML: The
Building Blocks of Life Itself.”
Internet
The Internet is a worldwide networking infrastructure that connects all
variety of computers together. These connections are made via Internet
protocols including (surprise, surprise) Internet Protocol (IP), Transport
Control Protocol (TCP), and User Datagram Protocol (UDP). IP is used for
addresses, TCP is used to manage sockets (and hence the Web), and UDP is
used to manage Domain Name Servers (DNSs). See Chapter 4, “How This
Web Thing Got Started,” for further explanation.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
08 0732 CH05 4/24/01 11:18 AM Page 126
As a web designer, all you need to keep in mind is that you’re not only com-
municating with readers and viewers (“users” if you must), you’re also cre-
ating work that must fit into formats appropriate to Internet technology.
In other words, it’s not your job to manage networks (for instance) as long
as you understand their implications for your work—such as bandwidth and
cross-platform issues. See Chapter 2, “Designing for the Medium.”
Intranet
An intranet is an internal or private networking infrastructure that uses
Internet technologies and tools. Unlike what occurs on the Internet, only
computers on the private physical network can access an intranet.
One other difference worth noting is that when you’re designing an Inter-
net site, it has to be usable by anyone in the world—Netscape, Opera, IE,
and iCab users; 6.0 browser users as well as 2.0 browser users; the blind
and the not-blind; WebTV users and AOL users alike. You get the picture.
On an intranet site, by contrast, all visitors may be using the same web
browser and computing platform, which can simplify some of your design
choices.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
08 0732 CH05 4/24/01 11:18 AM Page 127
in 1998, you might have built the entire site using Netscape’s proprietary
LAYERS technology. But with Navigator 6, Netscape stopped supporting
LAYERS in favor of W3C standards. Had you designed specifically for
Netscape’s previous browser, your site would not work when the client
upgraded browsers. Clients dislike that sort of thing, even when they are
the ones who insisted on using a specific technology. Proceed with caution.
Additionally, if all the site’s users are connected via a local network, you
can make bold use of bandwidth-intensive technologies such as streaming
video. When designing for the Web, you need to worry about bandwidth.
Full-screen video is out; smaller video images and heavily compressed
audio might be okay. For more on this fascinating topic, see Dave Linabury’s
“The Ins and Outs of Intranets” at www.alistapart.com/stories/inout/.
XML is a simplified version of SGML, designed for use on the Net. As of this
writing, it is most often used to deliver database-independent query results
between incompatible software applications. It is not yet universally sup-
ported in web browsers, though XML 1 is fully supported in Netscape 6, and
much of it is supported in IE5 and Opera 5. As a web designer, at least for
the next few years, you will hear about and see XML, but you will not be
called upon to create it—unless you begin marking up your web pages in
Extensible Hypertext Markup Language (XHTML).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
08 0732 CH05 4/24/01 11:18 AM Page 128
The Document Object Model (DOM) is a web standard that lets these other
standards “talk to each other” to perform actions. (For more about this, see
Chapter 11.)
Web page
As explained in Chapter 1, “Splash Screen,” a web page is a type of elec-
tronic document, just as a Microsoft Word file or a Photoshop document
is, except that a web page does not require any particular brand of soft-
ware for someone to open and/or use it. And that is the glory of it, broth-
ers and sisters. Developers and designers build web pages in HTML but, as
noted above, they also use stuff besides HTML, which we’ll talk about in
the relevant technical chapters.
Website
A website is a collection of related web pages published on the World Wide
Web.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
08 0732 CH05 4/24/01 11:18 AM Page 129
Additional terminology
Tech terms will come up like last night’s chili burritos throughout your
career. You can always look up the latest buzzwords (or refresh your mem-
ory about what you have learned) by turning to the Computer Currents
High-Tech Dictionary at www.currents.net/resources/dictionary/.
Web developer/programmer
The web developers on your team will be responsible for the technical
implementation of the site. You might hear them talk about Perl, Java, ASP,
PHP, SSI, XML, ColdFusion, and other technologies. Just smile and nod as if
you get it.
Most sites seamlessly fuse design, content, and interactivity. For that to
happen, teamwork is needed. You don’t have to understand how develop-
ers work their magic any more than developers need to possess design or
writing skills. But thoughtful collaboration and mutual respect for each
other’s disciplines are required to create functionally and aesthetically
superb sites.
Many developers have their roots in UNIX. Some are old hippies; others look
like preteen rejects from the cast of The Matrix. With the frantic need for
qualified personnel, developers also might come from the ranks of tradi-
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
08 0732 CH05 4/24/01 11:18 AM Page 130
130 WHO: The Obligatory Glossary: Roles and Responsibilities in the Web World
tional information technology (IT) services. Many of these people are won-
derful, but some have a strong bias toward particular technologies and
generally do not approach web development with a “Webby” mindset—by
which we mean a preference for open standards and accessibility.
Designers who wish their work to reach the broadest possible audience
might want to think twice before accepting a job at a place like that. We’ve
even seen shops where Mac-using designers can’t send email due to Win-
dows-only gateway issues. This is not intended as a slam at Microsoft’s
many fine products, two of which were used in the creation of this book.
It is simply cautionary advice for the job seeker. In our opinion, because
closed systems lock out millions of potential users, serious web developers
prefer open standards.
Project manager
These team members are like technologically savvy account executives.
They help articulate the client’s needs, develop schedules (timelines) and
budgets, and are responsible for keeping the project on track. Just like the
account executives you might have worked with in your traditional design
career, project managers are usually good people with stressful jobs. As you
used to do with account executives, you must employ tact and patience to
negotiate with these folks.
Project managers will often produce things called Gantt Charts, which are
frankly little more than fancy work schedules. Say “thank you” when you
get these. It makes them feel good about themselves.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
08 0732 CH05 4/24/01 11:18 AM Page 131
Do not actually look at the Gantt Charts, however. They will only frighten
you and make you feel hopeless and uncreative. Don’t worry about missing
any deadlines. The project managers will be “casually dropping by” your
cubicle every 15 minutes for the next 40 years, and you won’t miss a sin-
gle deadline. See, what did we tell you? They’re exactly like account
executives.
In some companies these folks are woefully underpaid juniors with exten-
sive computing knowledge. In others, they’re woefully overpaid juniors
without any computing experience at all, which is why many old-school
webmasters now call themselves systems administrators, network engi-
neers, database administrators, and so forth, leaving the webmaster
moniker to the temp who answers email about the site.
Some companies call their sysadmins developers. Some call their juniors
seniors—because titles are easier to come up with than salary. Some say
love is like a flower. Don’t let any of this drive you mad. Above all, respect
the sysadmins. Without them, we’d have no Web.
Web technician
Web technicians, also called producers, web producers, HTML jockeys, web-
monkeys, web practitioners, HTML practitioners, design technicians, HTML
technicians, geeks, and many other things, are folks who do a job similar
to that of the studio people in an ad agency. As studio people take an art
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
08 0732 CH05 4/24/01 11:18 AM Page 132
132 WHO: The Obligatory Glossary: Roles and Responsibilities in the Web World
If you were wondering, the difference between web technicians and web
developers is largely a matter of experience, knowledge, and salary. A web
technician may cut your comp apart and write HTML; a web developer is
more like a technology designer who envisions powerful transactions and
writes advanced code in several different languages to bring those visions
to life.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
08 0732 CH05 4/24/01 11:18 AM Page 133
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
08 0732 CH05 4/24/01 11:18 AM Page 134
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
09 0732 CH06 4/24/01 11:18 AM Page 135
chapter 6
Definition
Complementing this focus on the client’s needs, web designers must think like
the site’s anticipated audience. They foresee what visitors will want to do
on the site and create navigational interfaces that facilitate those needs.
Pretty dry stuff, we’ll grant you, but like marital bliss, it’s better than it
sounds.
How does all this fancy talk break down in terms of daily tasks? Below is a
summary of deeds you’ll do during the web development project life cycle.
In Chapter 7, “Riding the Project Life Cycle,” we delve into details.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
09 0732 CH06 4/24/01 11:18 AM Page 136
Through the project life cycle, the web designer will need to:
■ Lay out web pages and sites using HTML and other web development
languages.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
09 0732 CH06 4/24/01 11:18 AM Page 137
■ Update and maintain client sites as needed. Though this job, too,
often falls to web technicians or producers, don’t think you’re off the
hook. You’re never off the hook.
While interacting with clients, you’re also interfacing with research and
marketing folks to find out who is expected to visit the site and what they
will demand of it. You’ll be translating the anticipated needs of projected
visitors into functional and attractive sites—and hoping that visitors want
what your client wants them to want. (Try saying that with a mouthful of
peanut butter.)
If visitors seek in-depth content, but your client envisioned the site mainly
as a sales channel, either the client has fundamentally misunderstood his
market (it happens), or your design is sending the wrong messages. To build
sites that clearly convey what they are about and how they are to be used,
you must first communicate unambiguously with clients, marketers, and
researchers.
The site can’t communicate unless the people who build it communicate.
Ever try to design a logo for a client who could not articulate the target
market, product benefits, or desired brand attributes? The same problems
crop up in web design unless you are blessed with great clients or are will-
ing to work with the ones you have. Listening may be the most important
talent you possess. If your listening skills have grown rusty, you’ll have
plenty of meetings in which to polish them.
Good web designers are user advocates as well as client service providers.
They are facilitators as well as artists and technicians. Above all, they are
communicators, matching client offerings to user needs.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
09 0732 CH06 4/24/01 11:18 AM Page 138
138 WHO: What Is a Web Designer, Anyway?: What We Have Here Is an Opportunity to Communicate
Definition (Revised)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
09 0732 CH06 4/24/01 11:18 AM Page 139
As with any design assignment, you first find out all you can about the
client’s brand and the audience the client intends to reach and then make
appropriate decisions. The terrain will be familiar to you. It includes choos-
ing typefaces, designing logos, selecting or creating illustrations or photo-
graphs, developing a color palette, and so on. As we discussed in Chapter
2, “Designing for the Medium,” these familiar tasks change a bit when
applied to the Web because the medium embraces certain things (flat
color fields, text) while hiccuping on others (full-screen graphics, high-
resolution images and typography).
Business-to-business
Business-to-business means one company communicating with another or
selling to another. Annoying dot-com types and techno-journalists refer to
this as B2B.
The B2B category includes intranet sites (the private, company site of
Ogilvy & Mather or Pepsi Cola) and extranets (a steel company’s site linked
to a broker’s site linked to the sites of five customers). Flip back to Chap-
ter 5 if these terms make you edgy. Though this part of the web business
is hidden from most folks, it is vast and growing. There’s no doubt that in
your web career, you’ll be asked to design some B2B sites. You’ll also have
to avoid slapping people who say “B2B.”
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
09 0732 CH06 4/24/01 11:18 AM Page 140
140 WHO: What Is a Web Designer, Anyway?: What We Have Here Is an Opportunity to Communicate
In fact, we’d like to apologize right here for using acronyms such as B2B
and B2C. They annoy us as much as they do you. But you might as well get
used to them because you’ll be hearing them constantly at your job.
Besides, as annoying as these acronyms are, they’re not nearly as nerve-
wracking as ubiquitous venture capitalist phrases such as “burn rate,”
“built to flip,” or “ad-sponsored community play.”
We’ve never understood why these phrases arise, let alone how those who
talk that way manage to avoid being beaten with large polo mallets on
a daily basis. Our theory is that such phrases make the speakers feel impor-
tant. As you can probably tell, we didn’t have much to say about the
business-to-business category because, basically, web design is web design
regardless of the acronym attached to a particular category. Vanilla, choco-
late, or strawberry—ice cream is ice cream, Jack. (But do look back at Chap-
ters 2 and 5 for hints on coping with intranet-design-specific issues).
Business-to-consumer
When most folks think of the Web, they form a mental picture of business-
to-consumer sites such as Amazon.com—a business that sells products to
consumers like us. Not all B2C sites are overtly hawking products.
Yahoo.com is a B2C site. Yahoo! (the business) provides web users with
information. It isn’t selling anything per se, but it’s still B2C because it
speaks to consumers and is open to all. It’s not hidden on a private network
and password-protected, as a B2B site would be. The B2C segment is the
most visible part of the web. (We apologize for using the word “segment.”)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
09 0732 CH06 4/24/01 11:18 AM Page 141
Using HTML to lay out web pages does not make you a web designer—nor
does making pretty pictures in Photoshop. A web designer, like any other
designer, is a communications professional who solves problems. Just as a
CD cover says something about the music it contains, the band that cre-
ated the music, and the likely customer, so the site must clearly commu-
nicate its structure, content, and purpose in a way appropriate to a specific
audience.
Gosh, haven’t we made this point before? Yes we have. And yet many web
designers will read these words, nod their heads sagely (or maybe just nod
off), and then continue to create sites whose appearance has nothing to
do with the product, user, or brand.
Brand identity
As a designer or art director, you know what this means. But what does it
mean on the Web? In simplistic terms, and on the most basic level, it means
the same kind of work you’ve done all your professional life: Make the logo
bigger. Use the client’s color palette.
But on a deeper level, the web designer doesn’t merely “use the client’s col-
ors” and slap the client’s logo on a web page. The web designer uses the
site to express and extend the client’s brand identity.
Web-specific
No surprises here. In the case of the IBM site, “leveraging brand identity in
a web-specific manner” means designing a site that provides solutions, not
problems. Clear navigation and a search engine that works help the site
support this aspect of the brand. This is an example of using the Web’s
strength as a searchable database to convey brand attributes.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
09 0732 CH06 4/24/01 11:18 AM Page 142
142 WHO: What Is a Web Designer, Anyway?: What We Have Here Is an Opportunity to Communicate
Figure 6.1
Did the designers of IBM’s
website (www.ibm.com)
succeed in their quest to
translate the IBM brand
to the Web? Front-page
graphics tell only part of
the story. The site’s func-
tional performance tells
the rest. Web design
encompasses graphic
design but extends
beyond it.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
09 0732 CH06 4/24/01 11:18 AM Page 143
Technology
Web designers have a lot to say about the appropriate technological level
for sites they design. Choosing appropriate technology is part of your
job as brand steward and user advocate. Consider the following:
Technology choices are essentially decisions about who the site is for. As a
communications professional, you should cultivate an informed opinion on
this matter. If you don’t decide these issues for yourself, somebody else will
decide for you, which can have potentially tragic results.
It’s also worth repeating that even if you decide the site is primarily for
bleeding-edge web enthusiasts, you will want to create alternative pages
that are accessible to anyone.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
09 0732 CH06 4/24/01 11:18 AM Page 144
144 WHO: What Is a Web Designer, Anyway?: What We Have Here Is an Opportunity to Communicate
Beyond functioning appropriately for its intended use and supporting the
brand, if your site lacks visual appeal or a coherent and engaging message,
all but the most dedicated users will pass it by in favor of a more fulfilling
experience elsewhere.
“Form follows function” does not mean “form doesn’t matter.” Form mat-
ters a heck of a lot. Given two functionally equivalent sites, only one of
which delights the eye, where would you choose to spend your time? Okay,
you’re a designer. But given the same two sites, where would your Aunt
Martha choose to spend her time? Okay, well, yes, we forgot about Aunt
Martha’s problem. Anyway, you get the idea.
You did not go into design to make the world duller or uglier. Anyone who
tells you a functional site has to be visually plain is suffering from an emo-
tional problem. Don’t make their problem yours. (But don’t give them
ammunition by designing a beautiful but hard-to-use site.)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
09 0732 CH06 4/24/01 11:18 AM Page 145
Easy to navigate
Refer to Chapter 3.
We get inside the user’s head (to the best of our abilities, anyway) to struc-
ture and design a site that meets that user’s needs. Aside from your Uncle
Marvin’s personal home page, no site appeals to just one user. We construct
multiple scenarios to forecast the needs of multiple users.
Until all browsers support a core group of common standards, you will have
to learn the ins and outs of each distressingly different browser and con-
firm what you think you know by testing your completed designs on as
many browsers and platforms as possible. (We’ll discuss testing in the next
chapter.) In addition, your sites might need to work in nontraditional
browsers and Internet devices such as Palm Pilots and web phones.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
09 0732 CH06 4/24/01 11:18 AM Page 146
146 WHO: What Is a Web Designer, Anyway?: Can You Handle It?
For one thing, web work is teamwork. Project managers, developers, web
technicians, writers, producers, and other designers on your team will help
you keep your eyes on the prize.
You can count on your teammates. You can count on yourself. And the
process itself also will help you meet the goals you, your clients, and part-
ners set for each project. Virtually every web agency employs methodolo-
gies and processes to guide you and your teammates from the initial
meeting to the launch (and beyond). By a strange coincidence, you’ll start
learning about that very subject as soon as you turn the page.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 147
chapter 7
IN HOLLYWOOD, THE DIRECTOR IS KING. No matter how brilliant the work of the
actors, producers, screenwriter, cinematographer, composer, editor, set
designer, or other professionals, when the lights go down it is the director’s
vision that fills our eyes and forces us to respond.
On the Web, compelling sites begin and end with the vision of a lead
designer or a small, high-level design team. Other professionals certainly
play invaluable roles in defining and executing sites, however. Sites would
not work at all without the efforts of information architects, programmers,
producers, systems administrators, writers, and quality assurance teams—
to say nothing of focus groups, testing groups, marketers, and the occa-
sional consultant. And then there’s the client, who not only foots the bill,
but also contributes marketing and product information, existing artwork
and promotional materials, and his own ideas.
But sites that transcend mere adequacy depend on the consistent vision of
web designers. That means you.
Design at this level is broad and deep. It does not end with the creation
of graphic design elements. In fact, it does not even begin there. It starts
with the first meeting and continues straight through the launch. Under
ideal conditions, it goes on to include training and maintenance. For web
designers to stay actively involved in every step of the process, they must
thoroughly understand how the process works—hence this chapter.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 148
148 WHO: Riding the Project Life Cycle: What Is the Life Cycle?
Make no mistake: If you skip any part of the process, you pay for it later—
with a site that falls short of your vision.
If you’re not actively involved in the project from conception to “baby’s first
steps,” somebody else will be making critical decisions for you. That person
may not understand or care about consumer psychology, web usability, or
the importance of design. By understanding and involving yourself in the
entire project life cycle, you’ll be able to keep the focus on practicalities,
aesthetics, the client’s goals, and the needs of the site’s potential audience.
In your design career, you’ve undoubtedly toiled on projects that were mis-
directed long before you were brought into the loop. Designers can solve
many problems, but they cannot undo fatally misguided business decisions.
As an advocate for the end user and a spokesperson for the needs of your
team, you must be present from the beginning to the end.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 149
Though estimates vary, it’s agreed that the majority of information systems
projects fail. In case you missed that, we’ll say it again. Most information
systems projects fail. Why do they fail? It’s generally because there is too
much stuff to manage and keep track of, including the following:
■ Budget
■ Resources
■ Timelines
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 150
150 WHO: Riding the Project Life Cycle: Why Have a Method?
With a method in place, the team is freed from having to develop unique
support tools and processes for each new project. Without a method, the
team is driving off-road, blindfolded, without a map. They may reach their
destination safely, but it will be six months too late. They may end up in
Timbuktu, trying to convince the client they’re in Kansas.
The following story is true: Once upon a time, a web agency with no
methodology agreed to take on a large but fairly simple project. The client
delivered the copy 3 months late (they all deliver the copy late). The copy,
when delivered, was completely unusable. The agency had to pay a team
of freelance writers rush charges out of its own pocket because the client
had vetoed a writers budget. The client restructured the entire site as the
last graphic elements were being produced, invalidating all development
and graphic design work done up to that point and causing everyone to
work through Christmas to make up the difference.
Two weeks before launch, the client changed his logo and corporate
colors. A week later he changed his business model. The client faxed revised
(atrocious) copy from his vacation home, and it had to be manually retyped,
edited by those now-deliriously-happy freelancers, and then put into HTML
by freelance web technicians.
Just before launch, the client’s boss (the CEO) was brought in to bless the
work. Apparently, nobody had apprised him of the project plans. The CEO
hated everything. The client halted all work and, fearful of losing his job,
refused to send final payment. Attorneys were brought in. Agency staff was
laid off to pay the attorneys. Then the freelancers sued the agency for non-
payment. More staff was laid off. War was declared in Bosnia; Pinkerton
did not return—all because the agency failed to follow a methodology.
Successful web agencies often fall so in love with their methodology that
they broadcast it on their corporate sites. Whether they call it “our
method,” “our process,” or “Uncle Joe,” the discussion of corporate method-
ology is duller than fungus. So why do so many web agencies fill their sites
with such wearisome stuff? It’s because clients have been burned when
working with web agencies that seemingly had no methodology at all. The
trumpeting of methodology carries an implicit promise of performance.
(“We won’t be late or over budget. Look! We have a methodology!”)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 151
Every married couple takes vows, but many later break them. Similarly, the
existence of a written methodology is no guarantee that the company that
wrote it will practice it. Nevertheless, good companies do have methods
that work for them, and you will want to master the methodology of your
web agency. If possible, you will want to improve it. Every project tests the
validity of the company’s methods, thus every project presents an oppor-
tunity to improve the company’s methods.
Phases are plans, and plans are never static. Over the life of any project,
activities move from one phase to another; activities may span several
phases; and lines of delineation between phases may blur. Still, it is possi-
ble to sketch a general outline of the web project life cycle, which is what
we’ve done here.
1. Analysis
2. Design
3. Development
4. Testing
5. Deployment
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 152
152 WHO: Riding the Project Life Cycle: We Never Forget a Phase
Even before sitting down to brainstorm with the team, you must help the
client articulate and clearly define the site’s goals. Is the site selling some-
thing? If so, what is being sold and to whom? Is the site intended to serve
as a portal—if so, a portal to what and for whom? How will this portal dif-
fer from its competitors? If the idea stinks, don’t be afraid to say so. (First,
of course, do enough homework to be certain that the idea really stinks and
be prepared to offer the client a better idea.)
These responsibilities are not the web designer’s alone. Project managers,
information architects, and marketing folks will be all over these meetings,
but the web designer plays an essential part.
Indeed, the web designer is often the only person in the room who even
thinks about the end user. The project manager is scheming ways to get the
project done on time. The programmer is itching to try out some new
technology or lazily conceiving ways to reuse code from the previous proj-
ect. The technology director is fretting about server farms. The junior
designer is nursing a hangover, and the client is lost in fantasies of market
domination.
The web designer must help the client articulate objectives, both broad and
narrow, to begin delineating the project’s scope. If this work is not done up
front, it will haunt the project (and the whole team) later on.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 153
To summarize what we’ve just said: It is essential that the web designer
possess the ability to understand a client’s marketing goals and to discuss
potential issues and solutions with regard to design, site architecture, and
technology.
To assuage your fears, the only part of this that is new (from your per-
spective as a professional designer) is that technological issues have been
added to the equation—much as ink, paper stocks, and such are part of the
traditional design equation. You will learn what you need to know in this
book and on the job.
How does the analysis phase operate? Just as in traditional design projects,
it typically begins at the highest levels of detail and works its way down.
In initial meetings, the focus is on broad strokes (such as, “We’re a com-
munity for young women.”). As the project progresses, lower-level deci-
sions emerge (such as, “Should we put buttons or text labels on tertiary
search results pages?”).
Though most of us are happiest alone in our cubicles, staring at our mon-
itors and though many of us would rather undergo gum surgery than face
another meeting, in many ways this phase is the most critical and creative
part of the job. The movement, over successive meetings, from the general
to the particular takes place on many levels and extends beyond issues of
graphic design and technology.
Many times, even the most sophisticated clients have only a rudimentary
and confused idea of what they wish to achieve. In their own realm, they
are kings. On the Web, they are lost little children. If your background
includes marketing experience and if you have made yourself knowledge-
able about the Web, you can guide your clients away from vague or even
nonsensical plans and toward worthwhile, achievable goals.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 154
154 WHO: Riding the Project Life Cycle: We Never Forget a Phase
Take a simple project. Your client wants to sell videotapes online. He has
lined up a supplier and a fulfillment house, and after a full two hours of
online experience, he is convinced that his site will be “the Yahoo meets
AOL of online videotape e-tailing,” whatever that means. Because his
daughter, an art major, showed him the Monocrafts site (www.yugop.com),
a brilliant and beautiful work done entirely in Flash, he figures his site
should have “something like that” as well—oh, and a chat room. He read
about those in an airline magazine while flying between Seattle and New
York last year. He then describes the in-flight movie.
We wish we were making this stuff up, but it happens all the time. Not that
this client is necessarily an idiot—he may be brilliant in his accustomed
sphere of business. He may even read French literature and know fine
wines. It’s just that the Web is a mystery to him, and he’s not used to admit-
ting ignorance on any subject, even to himself. With tact and kindness, you
and your team will guide him toward a workable plan. Six months from
now, if you do your job well, he may have a fine site that includes movie
reviews by Roger Ebert, streaming video clips of selected films, and a thriv-
ing movie lovers’ discussion area. But it can happen only if you work with
him during the sometimes painful early analysis phase.
Defining requirements
Before all else, the web team must define two types of requirements:
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 155
Happy families are all alike, but every web project is different. Generally,
though, the purpose of early analysis is to define goals, determine con-
straints and requirements, and establish trust. Without goals, constraints,
and requirements, it will be impossible to know if the project is on target.
Without trust, you are looking at months of sheer Hell. With trust in place,
you may still be looking at months of sheer Hell, but you have a better shot
at enjoying the process and creating something useful.
Dishes Plus is a regional chain of successful retail outlets, known for its
reasonable prices, wide variety, and “break proof” guarantee. Dishes Plus has
decided to sell its product online. Naturally, you learn about the company’s
existing business, its competitors, and its brand image before the meeting. You
and your team help Dishes Plus define large goals (selling dishes), small goals
(branching out into soup tureens), and in-between goals (establishing a bridal
registry division).
You find out about the company’s audience (mostly women/mostly men,
young/old, urban/rural) and sketch the impact that may have on technologi-
cal and design considerations. If Dishes Plus has a loyal audience of people
over 50, tiny type is out, and plug-in based multimedia is probably out as well.
If selling is key, technological considerations leap to the forefront and should
be examined carefully.
How many clicks from expression of interest to final sale? If the inventory is
vast, a search engine will be needed. If Dishes Plus shoppers tend to spend
hours poring over the goods, artificial intelligence may be called into play on
searches (“If you like the Dixie Deluxe Classic Set, you’ll love the Colonel’s Tea
Service”).
Does Dishes Plus anticipate an overseas market? You might need to consider
building the site in several languages and using iconography to facilitate nav-
igation by non-English speakers. Do details matter? You can’t assume that the
client’s photography is up to snuff. You may need to budget for a good shooter,
conversion from photography to digital images, and a database to store and
serve the relevant images.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 156
156 WHO: Riding the Project Life Cycle: We Never Forget a Phase
How does the database work? Your developers know. Meet with them sepa-
rately and then bring one or more to the next client meeting.
The possibilities are endless—when you first enter the room. After several suc-
cessful analysis meetings, the possibilities should have focused into a set of
meaningful and achievable goals. If you’re still talking in generalities after two
or three meetings, you’re not doing your job. If you’re talking in generalities
after four or five meetings, the client is not serious. Timelines with cash con-
sequences can sober up most clients. Have an attractive, friendly project man-
ager explain to the client the additional costs incurred as his indecisiveness
causes deadlines to shift.
Design
The design phase is a simple word for a heck of a lot of activity. The process
nearly always unfolds something like this:
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 157
A project manager will join the team if she has not already done so. Make
her your best friend. While you conceive grand notions or are daydreaming
in Adobe Illustrator, she will be keeping track of and documenting sched-
ules, deadlines, goals, and progress. We wouldn’t last a minute in her job.
Nor would most “creative” folks. Respect her for doing what you would pay
not to do.
Methods of brainstorming vary. Some groups like to shout out ideas, writ-
ing everything down on a whiteboard. Others like to go off in small groups
and then reassemble to critique each other’s ideas. Sometimes you sit in
the corner and type out ideas. Sometimes you draw on a traditional sketch-
pad. Some agencies dictate how the process should work; others let you
figure it out for yourself.
To present these ideas to the client, you can once again use any of the
following:
■ Creative briefs
■ Pencil sketches
■ Wireframes
■ Color comps
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 158
158 WHO: Riding the Project Life Cycle: We Never Forget a Phase
Impossible agreements occur when the client asks for something that can-
not be done, cannot be done within the budget and time frame, or just plain
should not be done—and an inexperienced web designer or project man-
ager commits the company to fulfilling that unreasonable or impossible
expectation. Don’t laugh. Plenty of web design teams have met their doom
by committing to solutions that are technologically or graphically inap-
propriate, more costly than they’re worth, impossible to deliver within the
given time frame, or simply deeply stupid.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 159
This kind of foolishness most often takes place in-house, where egos run
unchecked and projects can drag on forever without obvious financial con-
sequences—because those who do the work are on the company payroll
anyway. But it also can creep into traditional client-vendor relationships if
project managers accept impossible agreements.
Even if the client has only good things to say about you, you don’t want
your clients to fail, and you don’t want the press to associate your agency
with widescreen, Technicolor flops. It will take all your expertise at client
negotiation to avoid the Titanic effect (also known as the Boo.com effect).
But it’s better to face conflict than to knowingly deliver bad work.
How Not to Do It
“Because I know what I’m doing, and you’re a pathetic marketing flack who
wouldn’t know a good idea if it bit him on the thigh.”
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 160
160 WHO: Riding the Project Life Cycle: We Never Forget a Phase
How to Do It
“We considered that very solution, Burt, but these studies show it would take
50% more time than we have—and we found that companies who tried that
technique actually did worse than companies who did it the way we’re sug-
gesting. Marcie, could you show Burt that Tragic Failure Report you were shar-
ing with me before the meeting?”
A good web designer will sometimes lie in the service of a larger truth. Pre-
tend we didn’t say that, and we’ll pretend you don’t know exactly what
we’re talking about.
Selling your ideas is not limited to unselling bad ideas, of course. And it’s
also not limited to explaining technology. You’ll have the same design and
brand identity discussions you’ve been having for years. They still want the
logo bigger. They still prefer the obvious to the original. They still know just
enough to be dangerous to themselves and the project.
For instance, on most sites, an icon or menu item will change appearance
when the visitor’s cursor rolls over that icon. This change in appearance,
not surprisingly, is called a rollover. A comp can demonstrate the active
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 161
rollover state by showing one icon that is different from the others (“rolled
over”). To make the effect crystal clear, capture an image of a mouse
cursor and lay it on top of the “active” icon in Photoshop (Figure 7.1).
Figure 7.1
Is this a screenshot of an
active rollover on a web
page? Or is it a Photoshop
Present color comps and proof of concept comp? Only its hairdresser
knows for sure.
You have presented, articulated, and sold ideas to the client. Now you do
it again. The only difference is that the work is farther along in the process.
In addition to explaining the rationale behind design decisions and dis-
cussing the underlying technology, you also should be prepared to aurally
“sketch” what you have not yet comped up.
The client is interested not only in what you are showing; she is equally
interested in what you are not showing. “Are all the sub-pages like this
one? Will there be photographs on the message board pages, as there are
on the content pages? What happens if the search shows up empty? What
will that page look like? Does my hair look okay?”
After the presentation, you will almost certainly need to make modifica-
tions. Web clients are no different than other design clients. They all have
needs they can’t quite articulate until they’ve seen some work. As in your
current job, you must know the difference between minor changes, which
may actually enhance the site, and major changes that could throw the
entire project off course. It is your responsibility to communicate the full
impact of suggested changes.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 162
162 WHO: Riding the Project Life Cycle: We Never Forget a Phase
Development
In the development phase, web designers work with other team members
to translate site concepts into functional web pages. While you design
additional graphic elements, create Style Sheets, and possibly code web
page templates in HTML and JavaScript, producers will be marking up
dozens, hundreds, or thousands of pages, and developers will be working
to make the entire site far more functional than HTML alone allows.
Up until now, you’ve felt pretty certain about the way the site would shape
up. After all, the front page and selected sub-pages have been designed
and approved. Now, you must take the elements of all those pages and
apply them to every single page of the site. Sometimes you do all this work;
sometimes assistants or colleagues pitch in; and sometimes the work is
carried out by the equivalent of production artists, whose work you may
supervise. What is important in this phase is to maintain consistency.
Is the navigational menu on the right-hand side in all existing comps? Then
it should remain there as new pages are designed, unless there is an over-
whelmingly important reason to move it. (“It doesn’t fit on this page” is not
a legitimate rationale; it merely means you must work harder and rethink
that page. Sometimes it means you must rethink the entire site.) The con-
sistent location of navigational elements provides a vital pathfinder for vis-
itors. Imagine trying to find your way in a strange city where the street
signs kept changing color or location. No city would be that cruel or fool-
ish. Neither should any website. (Flip back to Chapter 3, “Where Am I? Nav-
igation & Interface,” for more on this subject.)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 163
■ Communicate functionality
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 164
164 WHO: Riding the Project Life Cycle: We Never Forget a Phase
As the team creates each color comp, technicians or junior designers will
cut it apart in Adobe ImageReady or Photoshop 6, Macromedia Fireworks,
or another similar software program. This process converts the color comp
into component elements, and these are finally assembled into a working
web page built with HTML and other web languages or with a What You
See Is What You Get (WYSIWYG) web layout program, such as
Dreamweaver. This is not the only way to create web pages, nor (in our
opinion) is it necessarily the best way. It is the primary technique used in
most shops, however, and every web designer should master the process.
Communicate functionality
Refer to the previous discussion on rollovers or image swapping, as it
can be called. In some web firms, the web designer will code those image
swaps in JavaScript. In other firms, the web designer merely articulates a
desired effect (complete with Photoshop comps), and a developer or web
technician writes the necessary code.
Functionality can include CGI and Java (for forms, e-commerce, message
boards, and chat functions), JavaScript (for special interactive visual
effects as well as less glamorous browser detection, plug-in detection,
forms validation, and so on), plug-in technologies (Flash, QuickTime, or
RealVideo), and beyond.
By the way, we despise the word “functionality” even more than we hate
phrases such as B2B or B2C. Alas, it seems to be the best word for the job.
Former English majors, check your emotions at the door. This business has
more buzzwords than a venture capitalist convention.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 165
Designers and coders should always create highly structured and well-
documented work, so that they can easily go back to it and update it with-
out hunting for missing files, debugging errant file references, and so on
(or so that their clients, upon assuming control of the site, can perform
these tasks without damaging the site).
Upon finishing the site, you’ll accompany it with a style guide and docu-
mentation. These will be much easier to create if the site’s file structure
and naming conventions make sense to begin with.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 166
166 WHO: Riding the Project Life Cycle: We Never Forget a Phase
For you, this means titling the logo image “logo.gif” instead of “uglyswirl-
withstupidbevel.gif,” calling the November header graphic “nov_head.gif,”
and so on. For the web technician (or you, if you write your own HTML),
this means naming the disclaimer page “disclaimer.html,” storing images
in a single directory labeled “Images,” and so on.
Testing
Though a web development team will test its product throughout the proj-
ect life cycle, many web projects plan for a distinct testing phase. In this
phase, the development team has the opportunity to test the deliverable
against the design and functionality specifications.
In some cases, real users may test a site. In other cases, a specially trained
testing team will do the job. Testing by real users usually tells you more
about the site. We often get the most useful feedback by showing work to
the guys who deliver sandwiches. Be elitist in choosing typefaces but dem-
ocratic in designing interfaces. The Web is for people, not for experts.
We guarantee that there will be problems. For one thing, no two web
browsers interpret code and markup exactly the same way (see Chapter 2).
For another, what seems clear to you may be baffling to the people who
use your site. Web designers tend to live two years ahead of the curve; web
users, who actually have lives, tend to live behind the curve. You know that
little rotating box takes visitors back to the home page; visitors may not.
Testing will reveal problems in browser compatibility and user acceptance;
then it’s up to you and your team to solve those problems.
Deployment
You’ve completed the site. The client has signed off on it. The files have
been transferred to the web server. Think you’re finished? Not quite yet.
Successful projects demand a smooth transition from the web team to the
client.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 167
There are several ways to manage the transition. In one of the better
scenarios, you’ve designed a database-generated site for a large client with
much money and created a custom publishing tool enabling them to add
fresh content to the mix without befouling the site.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 168
168 WHO: Riding the Project Life Cycle: We Never Forget a Phase
In still other cases, your client will assign an in-house person or team to
take over the site. Sometimes these folks are in-house designers with solid
web experience. Sometimes they’re overworked marketers with a copy of
FrontPage.
Regardless of how the site is updated and by whom, in this final phase of
development, you get one more opportunity to preserve your work and
serve your client by creating documentation, providing client training, and
maintaining contact on a consulting basis.
As more and more clients plunge into the business of updating their own
sites, it is vital to provide them with every possible scrap of information. If
you don’t take pains with this postpartum part of the process, your client
may paint a moustache on your Mona Lisa or send visitors running for their
lives when a Style Sheet or JavaScript file is accidentally deleted.
By the way, such documentation should be created even if the web agency
retains control of the project (including updating and maintenance). After
all, six months from now, do you really want to scratch your head trying to
remember which font you used, where your navigational menu graphics
were stored, or which script was responsible for a given function? Of course
not. This documentation will be easier to create, and the site will be easier
to update if you’ve followed the advice given earlier in this chapter and
designed for easy maintenance by establishing and following logical nam-
ing and structural conventions.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 169
Besides helping the client avoid ruining a beautiful site, in-house training
also sends the message that your company cares. Clients who know you
care will come back with additional projects and will tell their friends on
the golf course about the integrity of your company.
If your clients are going to be writing HTML or (bless us) creating new
images, it is worth sitting down with them, at their computer or yours, and
pointing out the fine nuances of what you’ve done. You might even buy
fonts for them (matching the fonts you used), install the fonts on the
client’s computer, and show them how to work with Extensis Suitcase or
Adobe Type Manager Deluxe.
You may feel ludicrous doing this, especially if the client is not a graphic
designer, but it’s foolish to underestimate other people’s creative potential.
Besides, if they’re going to do the work anyway, you owe them and your-
self every possible assistance.
This whole thing is fairly unsavory, we’re afraid. It’s rather like a dentist
training patients to extract their own teeth, but it is an aspect of the busi-
ness, and coping is better than lamenting.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 170
170 WHO: Riding the Project Life Cycle: Work the Process
We recently ran into a puzzling problem where the web typography we had
established via Style Sheets kept disappearing from the client’s site after
he took it over. We had written a Global Style Sheet, placed it in a secure
location, and instructed the client never to touch it. Yet every time he
updated the front page, the Style Sheet reverted to an early, inferior vision,
and the client was constantly contacting us to ask why the site was going
to Hell.
Some hold their clients to ironclad contracts and schedules, while others
are loose and almost playful in their approach. Some shops show the client
exactly one comp—take it or leave it. Others cover the walls. Some agen-
cies charge astronomical fees merely to write a proposal; others write pro-
posals, design comps, and create storyboards on spec—a terribly ill-advised
approach, but not as rare as it ought to be.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 171
The main thing to remember is that every phase, every step of the process,
is potentially empowering. If you use initial meetings to establish trust and
help sharpen the client’s vision, you will find yourself working on sites
worth designing—for clients who respect you instead of mistrusting and
fighting with you. If you use the design phase to fully explore possibilities,
you will come up with richer designs and avoid structural problems in the
implementation phase. If you cooperate with team members and your
client during the production phase, you will encounter fewer problems dur-
ing testing. If you train your clients respectfully, your best efforts will be
preserved, you’ll be able to look at your old sites without experiencing nau-
sea, and the credibility of your work will win you new and better projects.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
10 0732 CH07 4/24/01 11:19 AM Page 172
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
11 0732 Part III 4/24/01 11:20 AM Page 173
Part III
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
11 0732 Part III 4/24/01 11:20 AM Page 174
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 175
chapter 8
AS WE’VE SAID THROUGHOUT THIS BOOK, HTML is a simple language for creating
documents that adhere to structured outlines.
<h1>Headline</h1>
<h2>Subhead</h2>
<p>Paragraph.</p>
<p>Second paragraph.</p>
<p>Third paragraph.</p>
<h3>Subordinate subhead</h3>
<p>Paragraph.</p>
<p>Second paragraph.</p>
<p>Third paragraph.</p>
<address>Contact information, copyright, date of publication</address>
Rocket science it’s not, nor was it intended to be. All great ideas should be
this simple. Notice that the tags (that’s what the lines are called—tags)
suggest their functions: <p> for paragraph, <h1> for first-level headline,
<address> for contact information. Notice also the fine symmetry in this
simple example. You open a <p> and you close it </p> when you’re done.
You open a <h3> subhead and </h3> close it before moving on to another
tag. In this way, the browser knows that one tag has closed before another
begins. In HTML, the closing of some tags is mandatory, while with other
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 176
176 HOW: HTML, the Building Blocks of Life Itself: Code Wars
tags it’s optional. That inconsistency has led to sloppy markup, which in
turn has caused browser problems, especially when other web standards
(such as CSS) begin to interact with your HTML. So it’s a good idea to close
most HTML tags whether it’s strictly required or not. (In XHTML, the suc-
cessor to HTML, all tags must be closed.)
CODE WARS
As five minutes of web browsing will show you, HTML has been twisted
every which way to enable web designers to create documents that are not
so logical in their construction nor so restricted in their presentation. Cas-
cading Style Sheets (CSS) and JavaScript are additional technologies that
enable designers and developers to create attractive, accessible, dynamic
web documents.
Table Talk
As a result of the Thousand Year March toward CSS compliance and while
waiting for better browsers, designers still use HTML for tasks it performs
reliably, if grudgingly, such as creating visual layouts by manipulating
HTML tables:
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 177
<td>
<a href=”writing.html”><img src=”writing.gif” width=”20” height=”20” border=”0”
alt=”Writing”></a>
</td>
<td>
<a href=”arithmetic.html”><img src=”arithmetic.gif” width=”20” height=”20” border=”0”
alt=”Arithmetic”></a>
</td>
</tr>
</table>
<!-- End menu bar. -->
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 178
178 HOW: HTML, the Building Blocks of Life Itself: Code Wars
HTML recommends that you close most tags, but it does not force you to
do so, and it does not uniformly recommend tag closure. Images <IMG>,
line breaks <br>, and list items <li>, for instance, are never closed in HTML.
Most older browsers will accept and attempt to display all kinds of shoddy
markup, including markup with unclosed tags that should be closed. And
some browsers choke on optionally unclosed tags when, according to the
rules of HTML, they should simply process the markup without qualms. For
instance, Netscape’s 4.0 browser refuses to display web pages with
unclosed table rows, even though the rules of HTML 4 state that table rows
need not be closed.
For this reason, among others, in 2000 the W3C stopped evolving HTML
and came up with a new standard called XHTML. Don’t sweat it. For a web
designer’s purposes, XHTML is essentially HTML that forces you to close
your tags—including those (such as <img>, <br>, and <li>) that never
required such closure before.
We don’t want to confuse you with yet another acronym, but the reason
XHTML works this way is because XHTML only looks like HTML. It is actu-
ally the offspring of XML, which is the standard toward which the Web is
evolving. (Technically, XML is a meta-language. That is, it is a set of rules
for creating languages. HTML is a markup language based on the SGML
meta-language. XHTML is a reformulation of HTML using XML as the meta-
language. You don’t really need to know this, but it’s great at parties, par-
ticularly when you’re trying to make someone stop talking to you.)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 179
“knows” what other tags on the page are doing. An HTML tag does not. Nei-
ther does an XHTML tag (at least, not yet). But XHTML follows the rules of
XML, chief among them the demand that all code be “well-formed.” Tags
that close after they open are demonstrating well-formedness in XML parl-
ance.
Exploring XML is beyond the scope of this book and is also beyond your
immediate job requirements as a web designer. In all probability you will
spend the next few years working with HTML or XHTML. In practical terms,
working with XHTML is just like working with HTML, except that it enforces
cleaner coding practices. HTML doesn’t care if you clean up your room.
XHTML does.
LOOKING AHEAD
What you need to understand:
■ Web designers must learn HTML, even if most of the HTML work at
their jobs is performed by web technicians. Web designers who
choose not to learn HTML will limit their creative thinking as well as
their employability. Frankly, few good web firms would hire a
designer who lacks at least basic knowledge of the technology that
drives the medium, though many would hire a great designer whose
initial HTML skills are merely adequate. Fortunately, HTML is very
simple and thus very easy to learn.
■ HTML was not created as a design tool, and within the next year or
two, we will no longer be using it as one. However…
■ …the Web is in transition, from an anything-goes “tag soup” to a
more usable and logical division of labor between technologies that
structure content (HTML, XHTML, XML) and companion technologies
that format its display (mainly CSS).
When you begin working at a web shop, you or your coworkers will likely
be formatting your pages in HTML (or XHTML) to make them compatible
with late 1990s browsers. You will use CSS as well, but initially only in lim-
ited ways (more about that in Chapter 10). Soon, CSS will do more and
more of the design work, and HTML and its successors will be used as the
Web’s creators originally intended.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 180
180 HOW: HTML, the Building Blocks of Life Itself: Looking Ahead
Directory Assistance
On the Web, files are referenced by Uniform Resource Locators (URLs) like
this one:
http://www.populi.com/index.html
These URLs are to cyberspace what street addresses are to the real world—no
two addresses are exactly the same.
UNIX was used to serve most sites at the dawning of the Web, and conse-
quently, URLs follow the conventions of the UNIX Operating System (for
instance, URLs are case-sensitive because UNIX is case-sensitive). UNIX is
still used to serve heaps of sites due to its stability and its deep roots in the
history of the Internet.
In UNIX, slashes separate directory names from each other and from docu-
ment names, and all web servers follow these conventions.
The names of web documents (including images, movies, and audio files)
generally end in a three- or four- character abbreviation that clues the web
server (and the browser) as to what they are (and thus, how they should be
handled). HTML documents end in .html (or sometimes .htm); JPEG images
end in .jpg (portrait.jpg); Flash files end in .swf (grandioseintro.swf); and
so on.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 181
Instead of:
<a href=”http://www.nostril.com/index.html”>
It’s also why you can reference internal files in this way:
Visit the <a href=”contact/”>CONTACT</a> page.
Instead of:
Visit the <a href=”contact/index.html”>CONTACT</a> page.
Or:
Visit the <a href=”http://www.nostril.com/contact/index.html”>CONTACT</a> page.
The systems administrator can override this default if she desires, allowing
welcome.html (for instance) to serve as the default opening document. In
fact, welcome.html was the default opening document on many systems
before index.html gained ascendancy. The default page at www.zeldman.com
is still welcome.html. (The old CERN server used Welcome.htm, complete with
initial caps.)
GETTING STARTED
There are plenty of books about HTML, and heaps of free online resources.
After all, what better place than the Web itself to learn about the markup
language with which the Web is created?
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 182
182 HOW: HTML, the Building Blocks of Life Itself: Getting Started
These are but five of many such resources online. Most of these resources
are noncommercial in nature. They exist only to share knowledge. We told
you the Web was different, didn’t we? (On the Web, this would be a hyper-
link back to Chapter 2, “Designing for the Medium.”)
For a superb, hand-holding tutorial that walks you through the entire realm
of HTML, you can’t beat W3C member Dave Raggett’s “Getting Started
With HTML” (www.w3.org/MarkUp/Guide/). It’s simple and complete; it
touches on CSS, JavaScript, and Image maps as well as HTML; and it comes
from a definitive source. (Raggett has been closely involved with the devel-
opment of HTML since the Web’s earliest days.)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 183
But don’t start with them. You’ll just upset yourself. HTML is simple, but
viewing dozens of pages of HTML tags and their scientific-sounding defi-
nitions can daunt the staunchest heart. Begin at the beginner’s sites, which
are written in civilian-friendly language. And learn to do one other essen-
tial thing:
VIEW SOURCE
Most of us learned HTML, not from each other’s tutorials, but by studying
the markup with which others’ web pages were built. Imitation is the sin-
cerest form of theft, and every one of us started out by copying and past-
ing other people’s markup, changing it around, and seeing what happened.
Before we discuss the ethics, here’s how to get started:
When you find a web page you like, select View, Source from your
browser’s menu bar, and save the file to your hard drive. (In Netscape,
choose View, Page Source.) Reopen it in a basic text editor (such as Sim-
ple Text or Write) or an HTML editor (such as Barebones Software’s BBEdit,
Optima Software’s PageSpinner, or Allaire’s HomeSite) and stare at the
code until it stares back. Plug your own words in between the HTML tags,
save your work, and open the file in your favorite web browser. Result: your
first (offline) web page.
Unless the layout you’ve stolen is extremely basic, you should keep it
offline. You don’t want to upload what you steal. You just want to learn
and move on. Here are the links for the editors mentioned previously:
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 184
184 HOW: HTML, the Building Blocks of Life Itself: View Source
A Netscape Bonus
In addition to View Source, Netscape Navigator’s browser includes a nifty
File menu option called View Page Info. Choose it, and the entire page will
be deconstructed for you in a new window, image by image. Beside each
image’s name you’ll find its complete URL (you remember…its address on
the Web), its file size, how many colors it contains, and whether or not it
uses transparency. Click the link beside each image, and the image will load
in the bottom of the window.
The way this works is not immediately intuitive; it was laid out by engi-
neers, not by designers or usability experts. But once you get the hang of
it, you’ll find View Page Info a useful tool for understanding how other peo-
ple have created web pages. IE does not offer this feature.
Doin’ it in Netscape
On the Mac: Pay a visit to your Netscape Options menu. Under Options,
Applications, View Source, switch from the default program to your HTML
editing program of choice (for instance, BBEdit or PageSpinner). Now when
you view the source of any of your existing web pages, the resulting HTML
document will automatically open in your preferred HTML program, ready
for further editing. Pretty nifty. Similarly, when you View Source on some-
one else’s site, the code will open in your HTML editor of choice, tempting
you to steal other people’s work and condemn your soul to Hell.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 185
In Windows: First of all, you need to install the entire Communicator pro-
gram, not just the Navigator component. From Composer (the extremely
limited semi-WYSIWYG “page creation” tool bundled with Netscape’s
browser), choose Edit then Preferences. Click Composer and register your
external editor for HTML Source. There. That really wasn’t so bad.
In a new, blank dialog box, type Source Code under Description, .html
under Extension, and source/html under MIME type.
In the File Type area, click Browse. It sounds as if you’re about to browse
the Web, but you’re not. You are actually navigating your hard drive to
locate your web editor of choice. Select it, and the File type and File cre-
ator areas will be filled in automatically.
You’re not done yet. Under Handling, choose Post-Process With Applica-
tion. Hit the second Browse button, select your web editor one more time,
and then hit OK. Then stand on your head and recite the Cub Scout pledge.
Just kidding about the pledge thing.
Now when you View Source, the code will open in your favorite web edi-
tor. Not push-button easy, but it works—and you only have to do this once.
We figure these tips alone justify the cost of buying this book, and we
expect you to dog-ear this page and fondle it quietly when you think no
one is watching.
index.html
thankyou.html
There is a special message for you on our <a href=”thankyou.html”>Thank You</a> page.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 186
186 HOW: HTML, the Building Blocks of Life Itself: Absolutely Speaking, It’s All Relative
Or even this:
These are called <ABSOLUTE> links because they refer to an absolute, con-
crete location in web space. (Well, as real or concrete as “web space” gets,
anyway.)
When two pages reside in the same directory, there is no need to use
absolute links. Using relative links lowers your character count (you can get
rid of http://www.ourcompany.com/customerrelations/special/), and that,
in turn, conserves bandwidth.
Relative links are easy to maintain on simple sites (though they become
fiendishly complex as a site grows and uses more and more directories). For
instance, if all images are kept in a directory called Images, the URL to an
image file might read like so:
<IMG SCR=”images/image.gif”>
We have left out the image’s height, width, and <ALT> attribute to simplify
the presentation of this idea. However, as previously mentioned, it is always
important to include an image’s height and width to help some browsers
display the layout more quickly. And, as also previously mentioned, it is
essential to include <ALT> attributes so that those with visual disabilities
or those who surf with images turned off will have some idea of the image’s
function.
The more complicated the site’s directory structure, the likelier relative
links are to require debugging. For instance, the reader is here:
somesite.com/julyissue/index.html
And you wish to direct her back to the index page at:
somesite.com/index.html
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 187
The two dots (..) preceding the slash mean “go up one directory level before
locating this file.”
With more directories, you have more and more complex links:
This can quickly lead to madness. Are you stuck writing out full, absolute
URLs? Heck, no.
Instead, you can use a shorthand form of absolute linking to retain the
advantages of relative URLs (portability, low bandwidth) while maintain-
ing the clarity of absolute URLs.
/index.html
By using this method, if you wished to move from the July Issue index page
up one directory to the root level index page, your URL would look like this:
Or like this (which is even smaller and doesn’t hardcode the default
directory index filename):
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 188
188 HOW: HTML, the Building Blocks of Life Itself: What Is Good Markup?
By contrast, relative links work on or offline, which enables you to keep one
or more fully functioning web sites on your hard drive.
For the validator to work properly, you need to include a <DOCTYPE>. This
is a simple declaration that specifies what kind of HTML (or other markup
language) you are attempting to write. For instance:
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN”
“http://www.w3.org/TR/html4/strict.dtd”>
This declares the document to be HTML 4.01 strict. HTML 4.01 strict
emphasizes structure over presentation and balks at “deprecated elements”
such as background colors in table cells, <FONT FACE>, <FRAMES>, and
other stuff we’re supposed to do with CSS instead of in HTML.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 189
This <DOCTYPE> declares that the web page is written in HTML 4.01 tran-
sitional markup, which tolerates deprecated presentational HTML attrib-
utes (<FONT FACE>, for example) so that such documents will render
correctly in older, less standards-compliant browsers. IE5/Mac, Netscape 6,
Mozilla and IE 6 will render these documents the same way older browsers
would. This affords web designers the ability to support older and newer
browsers while making the transition from a buggy Web to one that relies
on standards. (See the section, “The 18-Month Pregnancy” in Chapter 2 to
understand why a transitional or interim period is accommodated in this
way.)
Other <DOCTYPE>s include HTML 3.2, HTML 4.01 Frameset, and XHTML
Strict and Transitional.
Beginning writers use too many adjectives. Beginning designers use too
many shapes, fonts, and colors. Beginning HTML authors often fall so in
love with the medium that they forget to communicate. Instead, they cram
every page with embedded MIDI (music) files, pointlessly scrolling
JavaScript messages, huge full-color photographs, animated GIFs (flames
and dripping blood are especially popular), and blinking and moving text,
often in a dozen different font faces and sizes.
That is bad design, and (we think) bad markup, even if it validates—which
is pretty unlikely because folks attracted to dripping blood animations tend
not to spend much time learning about web standards.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 190
190 HOW: HTML, the Building Blocks of Life Itself: HTML as a Design Tool
Figure 8.1
This site for the Web
Standards Project contains
almost no graphics. The
shapes and colors are cre-
ated using nothing more
than HTML and CSS. It is
possible to fill the screen
with color and content
without wasting band-
width on images. As a
bonus, the code validates
(www.webstandards.org).
An HTML color in the <BODY> tag defines the entire background. The con-
tent grid is made up of a table, and the grid areas and background colors
are defined with table cell colors.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 191
The content area is enclosed within a black outline created with one line
of CSS. Originally, the same effect was created by wrapping one HTML
table inside another.
Creating a layout like this in Photoshop, cutting its elements into pieces,
and assembling those pieces via HTML, would have resulted in a large web
page composed of many small files that would take a long time to down-
load. (And if the visitor had images turned off, the visual effect would be
lost.)
Creating the layout in HTML and CSS means that the page loads almost
instantly, no matter how slow the visitor’s connection may be. And the lay-
out is backward compatible with browsers dating back to Netscape 3 (a
1997 browser), although the CSS formatting will be lost in that browser.
Actually, the site is viewable in any browser. Older browsers will lose the
design branding effects, but the content will still be readily accessible.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 192
192 HOW: HTML, the Building Blocks of Life Itself: HTML as a Design Tool
Other sites that use HTML or XHTML as a creative design tool (abetted
by CSS):
Use View Source to see how these sites use HTML table cells and table cell
colors, CSS fonts, leading, margins, and background images to create full-
Figure 8.2
This site, though colorful,
contains few graphics.
Big color sections are
created with CSS and
HTML <DIV>s. The tech-
nique facilitates Liquid
Design, reduces band-
width, and makes the
site more accessible
(www.alistapart.com).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 193
fledged visual experiences using nothing more than code (and a few low-
bandwidth images).
Frames are nothing more than pages within pages, for example:
<FRAMESET COLS=”80,2,*” frameborder=”no” border=”0” framespacing=”0”>
<FRAME SRC=”nav.html” NAME=”nav” marginwidth=”0” marginheight=”0”
noresize scrolling=”auto”>
<FRAME SRC=”black.html” NAME=”black” marginwidth=”0” marginheight=”0” noresize
scrolling=”no”>
<FRAME SCROLLING=auto SRC=”content.html” NAME=”content” marginwidth=”0”
marginheight=”0”>
</FRAMESET>
In this markup, <FRAMESET> tells the browser that the page contains
frames. <COLS> (short for columns) specifies that the frameset contains
three columns. The first is 80 pixels wide; the second is 2 pixels wide; and
the last fills the remaining width of the browser window.
We also can tell the browser whether or not we want borders on our
frames; whether or not each frame should permit the viewer to scroll con-
tent; whether or not each frame is user-resizable; and what size margin
we’d like on each frame. Because we’re designers, we turn margins off
entirely (marginwidth=”0” marginheight=”0”) and use CSS or tables to
control the margins on each individual frame—each frame, of course, being
nothing more than an HTML document (nav.html, black.html, content.
html).
We also name each frame for targeting purposes. After all, when visitors
click in a menu area, we want the content they’ve chosen to show up in
the content frame—not in the menu frame. Assigning a target name to each
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 194
194 HOW: HTML, the Building Blocks of Life Itself: Plug-ins and Tables and Frames, Oh My!
We always had it in for Aunt Moira, who never failed to point out when we
had gained weight or burst out in pimples, but our client would like her to
be able to use the site. Because we have named our frames and because
the good Lord (well, actually, Netscape) gave us JavaScript, we can instruct
the browser to load named frames if they are not already visible on the
page.
Thus when Aunt Moira (the old biddy) blunders her way into
companypolicy.html, the browser is instructed to load the missing frames.
Code like this would appear on each HTML document that made up the
frame, though not on the frameset document itself:
<!-- This one makes sure the left nav is loaded. -->
<script LANGUAGE=”JavaScript”>
<!--
if (top == self) self.location.href = “frameset.html”;
// -->
</script>
Such a script tells the browser to make sure that frameset.html has loaded.
If it has not loaded—if Aunt Moira’s browser is about to show a confusing
single frame no more illuminating than a single puzzle piece—the browser
gathers and assembles the missing pieces before the dear old thing has a
chance to notice that anything is amiss. We don’t want to get ahead of
ourselves by discussing JavaScript in the HTML chapter. Suffice to say, the
need to rely on such scripts points out some of the hazards of HTML
<FRAMES>, and helps explain why they are on their way out.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 195
Everything we now do with frames (and more) we can do with CSS, which
is standards-compliant and avoids the usability and accessibility hazards
<FRAMES> engender. But to switch from <FRAMES> to CSS, we must wait
for some browsers to improve their CSS support and all users to upgrade
to these better browsers.
One other maddening thing about frames is that though Netscape invented
them, it never got them exactly right. When you tell the browser to make
your menu bar 25 pixels tall, you may get 25 pixels in Netscape 4, but
you’re just as likely to get 32 or 16. If this suggests that you’re better off
avoiding frames whenever possible, we won’t argue.
In addition to tables and frames, web designers use applets and multime-
dia files to create designs that are frankly unimaginable in print. We will
discuss those in Chapter 12, “Beyond Text/Pictures.” Don’t skip ahead, we’re
watching.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 196
196 HOW: HTML, the Building Blocks of Life Itself: Plug-ins and Tables and Frames, Oh My!
Figure 8.3
Creatively used frames
keep design elements
fixed in the center of the
screen, whether the visi-
tor’s monitor is large…
Figure 8.4
…or small. Designer:
Marc Klein
(www.creativerepublic.com).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 197
Regardless of the application, <META> tags are placed in the <HEAD> sec-
tion of HTML markup. That is, all <META> elements show up between the
<HEAD> and the </HEAD> tags. Now let’s wrap our own <HEADS> around
them to see how this all works:
Search Me
When Aunt Moira (the old battleaxe) enlists the help of a search engine to
find a topic or subject, one way in which the search engine might sort data
is through <META> tags. Some search engines compare search words with
<META> descriptions, and they return the web pages that provide the best
matches, as in the following:
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 198
198 HOW: HTML, the Building Blocks of Life Itself: <META> <META> Hiney Ho!
<META NAME= “description” CONTENT= “Widgets.com builds reliable widgets for the
lubrication industry. As the American Midwest’s largest developer and supplier of indus-
trial-strength widgetry, we offer a product line of 2,000 parts as well as custom products
built to your specifications. Standard products ship in 48 hours in the Continental U.S., and
within three business days to lubricant concerns in Europe, Asia, and Africa.”>
<META NAME= “keywords” CONTENT= “widgets, lubricants, lubrication, industry, U.S., mid-
west, developer, supplier, industrial strength, widgetry, 2,000, standard, parts, custom,
product, development, shipping, 48 hours, Canda, Europe, Asia, Africa”>
<META NAME= “description” CONTENT= “Welcome to our home page on the World Wide
Web! We are happy to serve you. Please do not hesitate to call on our reliable staff if we
may serve you better in any way, shape, or form. This site is under construction. Some links
may not work and some pages that we are going to make later have not shown up yet
because we are still arguing about them in the boardroom. All our products are proudly
made in the good old U.S. of A. We are a good company that has serious social concerns.
Kids, stay in school. Hugs, not drugs. Have a nice day.”>
<META NAME= “keywords” CONTENT= “welcome, to, our, home, page, which, is, under,
construction, serving, you, proudly, since, 1955, but, not, the, website, which, as, we, men-
tioned, is, under, construction”>
The good <META> tags help search engines hone in on what the site actu-
ally has to offer. The bad <META> tags consign the site to the dung heap,
where it will never be found by any living soul—unless they are searching
for serve + kids + drugs.
Raw-elbowed marketing idiots, who are legion on the Internet, used to try
to “upgrade” their search engine rankings by repeating certain keywords—
a practice referred to as keyword spamming.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 199
widgets, widgets, widgets, widgets, widgets, widgets, widgets, widgets, widgets, widgets,
widgets, widgets, widgets, widgets, widgets, widgets, widgets, widgets, widgets, widgets,
widgets, widgets, widgets, widgets, widgets, widgets, widgets, widgets, widgets, widgets,
widgets, widgets, widgets, widgets, widgets, widgets, widgets, widgets, widgets”>
Needless to say, this no longer works, and if anything, you and the widg-
ets you rode in on will be dropped to the very bottom of any halfway rel-
evant search—or kicked out of the database altogether. Kids, don’t try this
at home (page).
As we say, most search engines ignore <META> tags, so if you want your
site to be found, focus on developing relevant body text and <TITLE> tags.
“Welcome to our home page on the World Wide Web” is not relevant text.
“Widgets.com builds reliable widgets for the lubrication industry” is rele-
vant, if unsavory, text. <TITLE> tags and body text are weighted more heav-
ily than <META> tags, even by search engines that consider all three
(<META> tags, <TITLE> tags, and body text). This is because it is easy for
liars to lard their <META> tags with exciting buzzwords that have little to
do with what the site actually offers. Body text—text seen by visitors—is
therefore given precedence over the wishful thinking that goes on inside
the <META> tag.
Everything we’ve just told you is probably outdated and irrelevant by now.
Visit www.searchenginewatch.com to get the latest specifics on search
engine ranking.
At a bad shop, <META> tags (and indeed, sometimes, body text) will be
written at the last minute by a recent college graduate with no experience
in marketing, communications, or the Web. When shopping for a job, don’t
simply judge the company by its graphic design. Peek under the hood for
evidence of a caring, intelligent environment—or a sweatshop that bangs
work out with little regard for its success or failure in the marketplace.
Wow, we’ve just saved you from taking a really bad job. This book is turn-
ing out to be worth every penny you paid for it, isn’t it? You ought to buy
copies for all your friends, and save them from taking bad jobs, too.
Another type of <META> tag (the <META HTTP-EQUIV>) does another type
of job and is worth mentioning.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 200
200 HOW: HTML, the Building Blocks of Life Itself: A Comment About <COMMENTS>
In this code example, <x> represents the number of seconds before the
refresh or reload occurs, and the URL refers to the page currently being
viewed. (Obviously, you would replace <x> with <10>, <6>, or however
many seconds you wish to have elapse before the page reloads itself. There
is no limit, to our knowledge, on how many seconds that may be. The
browser tells time via the operating system. Uncanny, is it not?) Given that
the visitor is already at www.widgets.com, why spell out the full URL
instead of a relative URL (such as index.html)? Trust us on this one. (If you
don’t trust us, using a relative URL will usually work, but can be problem-
atic if the page you’re refreshing gets moved or renamed, which web pages
often do. Full URLs make for better, safer maintenance in this instance.)
You also can use this technique to forward the visitor from an old, outdated
page to a shiny new one:
Many HTML experts, being spoilsports who live in Ivory Towers and proba-
bly never laugh even at really funny jokes like the one about the traveling
salesman, the farmer, the hippie, and the bus driver, disapprove of this
entire procedure. They recommend that you forward web users to new
pages (if need be) by using JavaScript. However, this <META> tag tech-
nique does work, even with old, non-JavaScript-capable browsers.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 201
redesigned or updated. At other times, you will be creating a site for some-
one else to update. All these situations are best served if you comment the
code as you write it. Referring once again to the code used earlier in this
chapter:
<Begin menu bar> and <End menu bar> are the comments that help you
(or a teammate or successor) figure out what was intended by all that
wacky HTML. They are always enclosed within <!-- special brackets --> so
that they will not be displayed on the web page. Even if you routinely work
alone (say, as a freelancer), comments will help you find your way when
you return to an HTML document you haven’t looked at for six months. Pro-
fessional web designers always comment their markup.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 202
202 HOW: HTML, the Building Blocks of Life Itself: WYSIWYG, My Aunt Moira’s Left Foot
Today’s “What You See Is What You Get”( WYSIWYG) programs are far more
powerful than the early, lame-o programs that gave WYSIWYG a bad name.
But most professional web designers continue to use text-based web edi-
tors. Why? In a word, control. In four words, to avoid bad markup.
Code of Dishonor
Though we hope to see this change soon, nearly all WYSIWYG editors tend
to write bloated (and often invalid) HTML markup. To make sure that every
browser—even one that’s five years old—will be able to display your page
as the program thinks you want it to be seen, these programs will grind out
all kinds of unnecessary workaround markup, adding unsightly flab to every
web page.
Other programs, notably one famous one we won’t mention for fear of law-
suits, tend to generate markup that works only in one browser. Coinciden-
tally, this browser is made by the company that also makes the WYSIWYG
program. Is this just bad design or an insidious marketing ploy? Ask their
attorneys.
Citizen Kane was not shot with an autofocus lens. Great web pages are not
built by using defaults. Use the markup, or you’ll be forced to depend on
the kindness of strangers (otherwise known as software companies), to
determine what you can and cannot do with your site.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 203
With an autofocus camera, the man in the striped hat will be in perfect
focus; too bad if you wanted to focus on the bird in the bush. Likewise, even
with an advanced WYSIWYG editor, your options as a designer will always
be limited. Comparing WYSIWYG editors to autofocus cameras is probably
unfair—to the cameras.
Yes, these WYSIWYG programs are getting much better. Yes, a substantial
number of pros do use them, particularly to rough out web pages quickly.
But these pros always end up revising the end product by hand.
WYSIWYG editors give you a false sense of control and a false sense of the
Web. As explained in Chapter 2, the Web is not fixed like a printed page. It
is fluid and variable and should be designed for accordingly. The tightly-
rendered page that looks great in your WYSIWYG editor may look terrible
on Aunt Moira’s monitor because your default fonts are larger than hers,
or she doesn’t have the same fonts installed that you do, or just because
she’s a silly thing who is going to leave her money to her cats, not you.
We can do the same thing with CSS, and before this book reaches its sec-
ond edition, that’s what we’ll all be doing. With CSS such layouts are faster
and easier to achieve, and the resulting web pages render more quickly.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 204
204 HOW: HTML, the Building Blocks of Life Itself: Browser Incompatibilities
Now let’s build the same layout in a WYSIWYG editor. We drag three
columns over a grid and place our image in the middle column. Unfortu-
nately, we were two pixels off when we dropped our image, because the
program lacks a “snap-to-grid” feature (or we forgot to turn the feature
on). What does the program do? It calculates an 18-column cubist mess of
code, using <ROWSPANS> and <COLSPANS> to make sure that our mis-
take gets perfectly rendered.
The program doesn’t know that our inexact placement of the image was an
accident. The program cannot think; it can only execute, using tortured
workarounds to honor our errors as hidden intentions. The result is a slow-
to-download, tortuously coded fiasco—one which, after all that absurd
markup and lengthy downloading, looks like garbage because the layout is
subtly “off.”
And of course, it will never reflow to fit each user’s monitor just so.
Knowing HTML doesn’t make you a web designer any more than knowing
your native language makes you a writer. But choosing not to know is
senseless. Don’t trust the ads. Learn the markup. If you wish to use the bet-
ter WYSIWYG programs to rough out your layouts, go ahead, but be ready
to get in there later and refine your code.
Moreover, even on that great day when all browsers fully support W3C
standards, extensive platform and hardware differences (as described
extensively in Chapter 2) mean that the Web will remain evanescent and
unfixed: a little different with each browser, in each monitor, and on each
operating system. That kind of incompatibility is perfectly okay—there’s
nothing we can do about it anyway. Incompatibilities that result in page
failures are not okay.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 205
Another thing you can do is visit The Web Standards Project (www.
webstandards.org), read our Mission Statement (www.webstandards.org/
mission.html), and use the Project’s Resources section to learn more about
standards (as well as incompatibilities). (In Chapter 10 we’ll talk about CSS
incompatibilities and how to work around them.)
To use an FTP program, you open it, type in the FTP address, user name, and
password, and upload your files by dragging them from the open window
on your desktop to the open FTP window. You can drag and drop hundreds
or even thousands of files at once.
Note that unlike the Mac OS, an FTP server will not warn you if you are
about to overwrite your files. Nor is there a comforting “Are you sure?” dia-
log box, such as in Windows. (Well, maybe the “Are you sure?” box is not
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 206
206 HOW: HTML, the Building Blocks of Life Itself: Publish That Sucker!
comforting, exactly, but it does help prevent mistakes. FTP does not.) Exist-
ing files, if present, will simply be deleted and replaced by the new file.
Many a life, or at least, a weekend, has been ruined when a web designer
dragged one file on top of another. So use care when naming
your files. Many web designers rename old files before they update
them (personnel.html becomes, for instance, personnelbak.html, or
~personnel.html).
Equally important is that depending on the rules of the FTP server, text files
might have to be uploaded as text, or they will not work. Image files, along
with Flash movies, sound files, and so on, might have to be uploaded as
binaries, or they will not work. Doddering old Fetch has a checkbox for
“automatic” detection of text or binary. That checkbox is your friend. Check
it and you will not be faced with the mysteries of the nonworking site.
Finally, as we’ve emphasized all along, it’s important to make sure that your
files end in appropriate extensions (.jpg for JPEG images, .html for HTML
documents, and so on) and that you have paid attention to their capital-
ization—or lack thereof.
Offline, you can get away with mismatched cases. For example, <IMG
SRC=”mydog.gif”> might work just as well as <IMG SRC=”MYDOG.GIF”>
or <IMG SRC=”mYdOg.gIf”> when you’re testing the web page offline on
your hard drive. But almost all web servers are case-sensitive. (Windows IIS
does not seem to care one way or the other.) On most servers, if the file is
named mydog.gif and your HTML refers to <MyDog.gif>, the image will not
show up on the Web.
Many web designers avoid this problem by using only lowercase for their
filenames: mydog.gif—never MyDog.gif or MYDOG.GIF.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 207
One of our clients performs his own site maintenance and updating. Well,
actually, many of our clients do this, but we’re not talking about those
clients. We’re talking about a particular client who wreaked havoc by
renaming a certain directory <PRODUCTS> after linking to it throughout
the site from its original name, <products>. One little word, eight little let-
ters that simply meant he got fired.
HTMHELL
This chapter and the resources to which it points are not sexy because
HTML is not sexy. It is a dull, baseline standard that behaves in predictable
ways (give or take a few browser compatibility problems). As a web
designer, you’ll be hired because of your visual skills and your thinking, not
because you can upload files correctly, write good <META> tags, or have
committed the various <DOCTYPES> to memory. Nevertheless, without a
thorough understanding of HTML and the ability to write it, detect and fix
errors in it, and use it creatively as a design tool, you cannot be an effec-
tive web designer. So take the time to learn this simple, logical markup lan-
guage before moving on to the more exciting stuff. (The exciting stuff
begins in the very next chapter.)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
12 0732 CH08 4/24/01 1:22 PM Page 208
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:21 AM Page 209
chapter 9
Visual Tools
IN THIS CHAPTER, you’ll learn how web designers use Adobe Photoshop and
related software to design comps, prepare typography and images, and
convert the whole shebang into working web pages. Along the way, you’ll
get the lowdown on image file types, learn design techniques that make a
virtue of web images’ limitations, and see how the issues of color, band-
width, and navigation discussed earlier in this book apply to the creation
of web layouts in image editors. We’ll also chat about alternative web
design methods that produce lighter, more accessible sites.
If you’ve read other web design books, some of the initial material in this
chapter will be familiar to you, though we might take it places other books
haven’t.
In short—pour yourself a tall one, fluff up your seat cushions, and get ready
to burrow in.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:21 AM Page 210
We’re assuming that you already know how to open an image in Photo-
shop, resize it as necessary, apply color correction, make selections, run fil-
ters, save the image in a particular format, and scream when the client tells
you your multilayered masterpiece is “too busy.” If not, now might be a
good time to brush up on your basic Photoshop skills (www.adobe.com/
products/tips/photoshop.html).
Comp Preparation
Unlike in the print world, where Quark XPress, Illustrator, and InDesign hold
sway, most web designers create their page layouts entirely in Photoshop.
You’ll use it to conceive designs and show them to clients.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:21 AM Page 211
Gamma Compensation
Photoshop easily handles the cross-platform gamma dilemma we dis-
cussed earlier in this book. (See “Gamma, Gamma, Hey!” in Chapter 2,
“Designing for the Medium.”)
Preparing Typography
Photoshop, together with Illustrator, enables you to prepare typographic
images for the Web. Photoshop has become so adept at this task that many
web designers now use it exclusively.
We’ll explore JavaScript in Chapter 11, “The Joy of JavaScript.” While there
is no substitute for learning JavaScript and employing it creatively, in this
chapter you’ll learn how ImageReady can automatically generate appro-
priate rollover scripts for you. These rollovers can be extremely sophisti-
cated and might exceed many web designers’ hand-programming abilities.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:21 AM Page 212
GIF Animation
On the Web, images need not be static. Animated GIFs create the illusion
of motion without requiring visitors to download and install third-party
add-ons such as Flash, Shockwave, or the Adobe SVG plug-in (not that
there’s anything wrong with Flash, Shockwave, or SVG, all of which are dis-
cussed in Chapter 12, “Beyond Text/Pictures”).
GIFs can contain more than one image, and the format was originally
prized for its utility as a kind of multiple image storehouse. In the mid-
1990s, some smart soul figured out that these multiple images could be
“played” in sequence, creating the illusion of motion. The animated GIF was
born, and the Web has never fully recovered. Photoshop’s ImageReady
module enables you to easily create GIF animations. These can be free-
standing, but might just as easily be incorporated into rollovers.
Now let’s look at some problems peculiar to web design and see how you
can solve them with Photoshop and ImageReady.
Designers work with computers that support millions of colors. But most
web users are limited to thousands (or hundreds) of colors, and your design
must work well in these environments.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:21 AM Page 213
Dither Me This
You’ve chosen a subtle shade of off-white for your typography. The viewer’s
graphics processor cannot reproduce that exact color, so the web browser
breaks up your type into a series of adjoining pink and white pixels. If the
viewer squints, she will get an approximation of the color you intended to
use (see Figure 9.1).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 214
Figure 9.1
The toothpaste may get
teeth their whitest, but
it doesn’t do much for
this off-white typographic
headline. On 8-bit
systems, the type gets
pixellated, and we suspect
the web designer will, too.
(Image enlarged 200%.) In small, transitional areas, dithering is okay. But when it occurs across
large areas of solid color—or when it is visible in the primary letterforms of
typography—the result will be visually hideous, and legibility can be seri-
ously impaired. (Usability experts and web artists alike can agree that
hideous, illegible type is not a good thing.)
Figure 9.2
With the typography
recast in web-safe white
(#ffffff), the headline is
no longer pixellated,
increasing the chances
that it will actually be
read. The background
image is still dithered, but
users of 8-bit systems will For typography, CSS or HTML background colors, or any other area of large,
accept that. (Image flat color, if you stick to the web-safe color palette, you will avoid causing
enlarged 200%.)
dithering and its resulting illegibility and aesthetic problems on 8-bit sys-
tems. As explained in Chapter 2, the practice will not help those with 16-
bit systems, but nothing can save those folks except a graphics card
upgrade in their future.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 215
The web-safe color palette cannot die as long as it continues to solve prob-
lems for millions of web users. It does not solve every problem, but neither
does penicillin, and nobody talks about the death of penicillin. We bring
this up now because you will hear about it at the office and read about it
in web design newsletters, mailing lists, and bulletin boards.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 216
A moment’s analysis will tell you that many people around the world are
not online yet. That those who are online are mainly limited to slow con-
nections over untrustworthy phone lines. That even in the major urban
areas of industrialized nations, high-speed access is often hard to come by
and frequently comes at a premium many cannot afford—or are not will-
ing—to pay. That major Hollywood productions cost millions and can make
a profit (when they do make a profit) only by charging admission. That web-
sites generally do not charge admission, and web clients generally do not
have millions of production dollars at their disposal. And finally, that most
people do not seek big-budget entertainment from the Web. They seek
information, services, and communities—all of which the Web can deliver
with a minimum expenditure of bandwidth.
In other words, much of what you hear about how the Web works and
where it is going is bunk—including, we think, the death of the web-safe
color palette. Ask us again in a year or two when (hopefully) most PCs come
standard with 24-bit color or higher.
You will find, after you work with these colors, that it is possible to create
pleasing combinations with them, and you will develop your own tech-
niques for doing so.
In this quest, you will be greatly aided by Photoshop’s own tool set and by
the VisiBone color palette included in Photoshop 5.5 and higher and avail-
able free online. The VisiBone palette is a superb tool for establishing visual
relationships between web-safe colors. And, as you already know, visual
relationships are the key to creating pleasing and effective color schemes.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 217
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 218
Exercise 1: In a Dither
Be certain your monitor is set to 24- or 32-bit mode. Launch Photoshop 5.5
or higher.
Open a new, blank document (600 x 400 pixels) and paint in it randomly, using
the Paintbrush and Airbrush tools.
Also be sure to use the Type tool to set some large type in a variety of colors.
Look at the image you’ve created. Those ugly dots are dithering, and that’s
what millions of viewers will see if you do not learn to incorporate the web-
safe color palette into your work.
Close the image without saving it, quit Photoshop, and restore your monitor
to its normal color settings (millions of colors).
Be certain your monitor is set to 24- or 32-bit mode. Launch Photoshop 5.5
or higher.
Figure 9.3
The Photoshop Color
Picker provides RGB, HSB,
Lab, CMYK, and hexadeci-
mal readouts for any color
you choose. The familiarity
of RGB and CMYK will
help acclimate you to
hexadecimal nomencla-
ture. Click the checkbox
that reads Only Web
Colors, and your choices
will always be web-safe.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 219
Watch your universe of color options shrink down to 216 choices. On the plus
side, the various graphic dialogs help you see the relationships between web-
safe colors.
From now on, Photoshop’s Color Picker will always be web-safe. You can also
use Photoshop’s Color Picker to shift a near-web-safe color so that it is fully
web-safe.
Photoshop’s web-safe Color Picker is a vast improvement over what the pro-
gram used to offer in the way of support (namely, nothing).
Now that our Color Picker is web-safe, let’s do the same for our color palette
dialog. Jeepers, but we are moving along quickly here.
Be certain your monitor is set to 24- or 32-bit mode. Launch Photoshop 5.5
or higher.
In the Swatches dialog box, choose Replace Swatches. A dialog box opens,
allowing you to navigate to a new palette located on your hard drive. Steer
your way to the VisiBone color palette (VisiBone1.aco), which is most likely
located in Adobe Photoshop 5.5, Goodies, Color Swatches.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 220
Figure 9.4
The VisiBone color palette,
located in the Color
Swatches folder within
the Goodies folder in
Photoshop 5.5 and higher,
makes it easy to choose
harmonious or contrasting
colors from within the
web-safe palette. Don’t
leave home without it.
This is still the web-safe color palette. But unlike Photoshop’s built-in, default
version, the VisiBone palette offers a meaningful arrangement built around
the color wheel model we all learned about in school (unless we spent our time
in school doodling and learned almost nothing except how to draw guitars in
the margins of our textbooks). Colors move in a circle across the spectrum,
and related colors are geometrically aligned with respect to one another.
The VisiBone color palette not only helps you choose web-safe colors, it helps
you choose web-safe colors that relate to one another in a meaningful way,
man. Harmonious and contrasting color relationships are easy to see and thus
easier to create.
In other words, the VisiBone palette helps you start doing beautiful work
within the limitations of the Color Cube. For instance, it helps you quickly find
a web-safe approximation of a client’s logo color and begin experimenting
with complementary and contrasting web-safe colors for your layouts. (It goes
without saying that if original logo development is part of the project, you will
design the logo using web-safe colors. It also goes without saying that your
client might want you to design a logo that matches the color of their
new Beetle or their favorite coffee mug, but that is where tact and client
education come in.)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 221
Now pat yourself on the back. Many of your peers have no idea that this spe-
cial swatch exists, that it comes bundled with Photoshop, and that it can
greatly ease the creation of meaningful and attractive color schemes for the
Web. You are ahead of the game.
For additional wisdom on the Color Cube, see Lynda Weinman’s site at
www.lynda.com and David Siegel’s at www.killersites.com. You also might
want to buy Weinman’s Designing Web Graphics and Coloring Web Graph-
ics, both of which are available from New Riders Press, and are pretty much
the standard industry texts. They are full of practical examples and offer
stimulating and innovative ideas from the earliest days of web design.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 222
PNG is yet another web format, one that has been little supported in the
past. Some newer browsers have begun to support PNG, though it is still
far from ubiquitous. We will discuss it after thoroughly examining the GIF
and JPEG formats—how they work, which types of images they deliver best,
and how you can evolve strong stylistic concepts by understanding their
limitations.
GIF
The Graphics Interchange Format (GIF) is older than the Web. In fact it is
older than some web designers. GIF was developed in the 1980s by Com-
puServe, and you’ll often hear old-timers speak of “CompuServe GIFs.”
You’ll also hear them talk about walking 12 miles to a one-room school-
house.
The Compuserve folks pronounced the word as if it were the name of the
peanut butter (“Jiff”) and because they were the inventors, that is the cor-
rect pronunciation. Millions of people pronounce GIF with a hard “G,” how-
ever, so you might as well be a sniveling conformist and spend the rest of
your career mispronouncing GIF while secretly suffering great guilt over it.
GIFs are usually seen with a .GIF file extension, as in payme.GIF or
payme.gif.
The GIF format renders in 8-bit color or lower, at your discretion. Two-color
GIFs are not uncommon. GIF permits you to achieve crude transparency
effects by marking one of your 216 (or fewer) colors as “transparent.” How-
ever, you must take care to anti-alias the foreground image against the
transparent color, lest mismatched halos surround your graphics. Fortu-
nately, GIF renders specific colors exactly, so it is an easy matter to match
web page backgrounds to image backgrounds. The only caveat there is the
previously mentioned heartbreak of 16-bit systems.
Above all, GIF enables you to save bandwidth without sacrificing quality. It
employs the Unisys-patented Lempel Ziv Welch (LZW) algorithm
(www.dogma.net/markn/articles/lzw/lzw.htm) to efficiently compress solid
color areas while preserving crisp detail. Though the format necessarily dis-
cards colors—for instance, when rendering a 24-bit image as a 16-color
GIF—it does not blur or eliminate significant image details. For this reason,
the GIF algorithm produces what is known as lossless compression.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 223
Animated GIFs have been supported in all graphical web browsers since
Netscape 2.0 (1995), and nonanimated GIFs have been supported in graph-
ical web browsers since before time began. For now we will continue to
discuss the merits and uses of static (nonanimated) GIFs.
In spite of the fact that GIFs are found on millions of sites, the GIF format
is not a W3C-recommended web standard. That’s because GIF gets its
power from a patented algorithm. Unisys, the patent holder, is entitled to
charge royalties on any software that employs the LZW algorithm—in other
words, any software that can read or write GIFs. The revelation of Unisys’
right to charge a “GIF tax” spread panic among early web designers when
it became widely known only after the entire Web seemed to be built with
GIF images. It also led to the development of PNG, a GIF-like format with
more advanced features and a nonproprietary compression algorithm.
GIF “royalties” do not work in the way that, say, photo rights work. You do
not pay a fee each time you create a GIF image. Instead, software compa-
nies such as Adobe, Macromedia, and Corel render these tributes to Cae-
sar. You pay your share one time only, and it is hidden in the purchase price
of Photoshop, Fireworks, or any other software program that exports to the
GIF format.
GIFs are not the format of choice for photography, paintings, and other
subtly modulated images because they lack sufficient colors to reproduce
these types of images and because the nuances in those images do not lend
themselves to LZW compression. Photographic images tend to render bet-
ter in the JPEG format (or PNG), and we’ll get to those formats soon
enough.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 224
GIFs in Photoshop
In Photoshop, you can choose whether to save your image as a standard or
interlaced GIF. The standard format is like a reader, taking in one letter after
another, one word after another, one sentence after another. Standard GIFs
store and display the bytes comprising an image’s pixels in their order of
appearance: The first pixel in is the first pixel out. Thus, standard GIFs scroll
onto the viewer’s screen pixel by pixel and line by line.
The interlaced format is like a nervous reader who keeps skipping ahead—
from paragraph one to paragraph five, then back to paragraph one. Inter-
laced GIFs load in a parallel rather than linear sequence, allowing the total
image to be rendered more quickly and then with greater detail as addi-
tional pixels are downloaded. This allows viewers to get a sense of the
image before it has finished downloading.
Under the right conditions, interlaced GIFs might thus appear to load
faster—and so may your site. The appearance is deceptive given that inter-
laced GIFs are often a few bytes larger than standard GIFs and therefore
take a fractionally longer time to fully download. Moreover, the slight
benefits of interlaced GIFs often evaporate when other conditions are
factored in.
For one thing, the effectiveness of progressive GIFs depends on the viewer’s
access speed. With a super-fast connection, images load so quickly that
any progressive rendering benefits are lost. The format was something of a
godsend not so long ago, when most web users were limited to 14.4
modems. Today, few are stuck with such abysmal speeds.
Some browsers, such as Internet Explorer, give users a choice. Users may
view each image as it downloads (best with slow connections), or they may
choose to wait for the entire page to download and assemble itself in mem-
ory before appearing full-blown on the screen (best with fast connections).
Users choose a viewing method in the Explorer Preferences dialog box. You
have no way of knowing or controlling these user preferences.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 225
Beginning web designers often ask if they can control the loading order of
images on a web page. Given what has just been explained, the answer is
obviously “no,” because web users can choose (or their browsers may force
them) to wait for the entire page to load. Beyond that, HTML has no means
of controlling the loading order of images. And even if it did support such
nuances, the unpredictability of HTTP calls (explained in Chapter 2) means
that one image might halt in mid-download, not even appearing until
another, called much later, has already popped into place. The more images
per page, the greater the randomness of load order. View a busy thumbnail
image gallery sometime to see this in action, assuming your browser allows
you to watch images download one by one.
They’re not great for JavaScript rollovers, either. You can offset the harm-
ful, blurred quality of progressive GIFs in rollovers by preloading the
images, a technique explained in the Chapter 11, “The Joy of JavaScript.”
When preloaded via JavaScript, images download and are stored in the
viewer’s cache even though they do not appear on the web page until trig-
gered by some action on the viewer’s part (typically, moving the mouse over
an image to which rollover effects have been applied). Any sane web
designer who creates rollovers starts by preloading the alternate (replace-
ment) images. But if the images are going to be preloaded anyway, there’s
no sense in having them render progressively because the user will never
see them until they have fully downloaded and cached.
One last tip while we’re in this area. Given that text loads instantly and
images take time (see Chapter 2), designs that use HTML text above the
fold will appear to load more quickly than those that bury their text fur-
ther down on the screen. A web user waiting for images is a web user with
nothing to do (except, perhaps, hit the Back button). A web user reading
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 226
text has less anxiety about the fact that some images may not have fin-
ished downloading. With sufficiently engaging text, the user will feel that
the site is responsive. Keep this in mind when designing sites that require
a great many images.
Just as MP3 music files toss away audio harmonics to achieve compact file
sizes, JPEG’s compression works by selectively discarding bits of image
data. Because a loss of quality is involved, JPEG compression is referred to
as lossy compression. “Lossy” is an annoying word that looks wrong, but we
appear to be stuck with it. In theory, the material discarded by the JPEG
optimization process is data that is nearly invisible to the human eye (just
as audio data discarded by the MP3 format is supposed to go practically
undetected by your ears, though we’ve never met a music fan who could
not hear the difference). The greater the JPEG compression, however, the
more visible the “missing data” becomes. At extremely high compression
ratios, JPEG images can display funky artifacts (see Figures 9.5 and 9.6).
Unlike GIF, the JPEG format does not retain specific web-safe (or other) col-
ors. It promises you a rose garden, but the rose might be umber. In a sil-
houetted portrait where the edges of the image must match the
background of the web page, you would therefore use GIF, not JPEG.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 227
Figure 9.5
At moderate JPEG
compression levels,
image details are clear,
but file size is high.
Figure 9.6
At high JPEG compression
levels, file size is low
(minimizing bandwidth)
but so is the quality. Each
JPEG optimization is an
exercise in balancing file
size versus quality of
detail.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 228
Photoshop’s Save For Web function provides a small, Matte Color dialog
box that purports to save an exact background color of your choice, even
in the JPEG format. (Skip ahead to Figure 9.7, if you must. The Matte Color
dialog appears at mid-right.)
Photoshop does all it can to fulfill this promise, but the JPEG format really
is not built to handle specific colors like this. To viewers with 24-bit and
higher systems, the background color will appear to match. For 16-bit and
lower users, the mismatch may be clearly visible. So stick with GIF when
you absolutely, positively, have to deliver a specific web-safe (or other)
color.
Photoshop 3, 4, and 5 offered early web designers very little in the way
of optimization and color controls. As a result, a number of inexpensive,
third-party, shareware plug-in products specifically tailored to the needs
of web designers sprang up in the mid-1990s, most notably Boxtop
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 229
The Save For Web dialog is powerfully compelling in the breadth and sub-
tlety of its tools. You can preview GIF versions using as few as two colors,
as many as 256, or anything in between. You can use Adaptive, Selective,
Perceptual, or web-safe color, with or without dithering, transparency, or
interlacing (the “progressive” setting). You can skew images closer to or
further from the web-safe palette as you desire. You also can name and
save custom settings for later application to similar images.
Figure 9.7
Photoshop’s Save For
Web dialog in action. In
this “four-up” view, the
original image appears at
the upper left for easy
comparison with various
optimization schemes of
your choosing.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 230
Images in Save For Web mode also may be previewed at various JPEG set-
tings, both baseline and progressive, and again the tools are remarkably
powerful.
In general, the fewer the colors used in a GIF, the better it compresses. This
is not because the color palettes themselves eat bandwidth; rather it is
because of the way LZW compression works. More on that in a moment in
the “Expanding on Compression” section that is coming up next.
After you decide which optimization scheme works best for a given image,
the image can be saved in that format. Your chosen settings may be
retained indefinitely, and can even be applied (as a droplet) to an entire
folder of images.
Photoshop lets you name and store as many of these settings as you like.
If a series of images you’ve created for Acme Widgets happens to work well
in 12 colors with no dithering at 60% web-safe, you can name that set-
ting 12color_nodither (or acme_widgets or 60websafe or donaldduck if
you prefer). You can then save it forever—or at least until your backup
media deteriorates and what’s left of your hair is white and listless. By then
we’ll all be living on Mars while our clones do the work, anyway.
Alternately, you can use the ImageReady module to satisfy your wanton
image compression and formatting needs. But Photoshop’s Save For Web
is just as effective, and the true power of ImageReady comes later in the
process (and this chapter).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 231
Expanding on Compression
As explained previously, we compress images to minimize wasted band-
width and speed the arrival of the web page. We’ve shown you how Pho-
toshop optimizes images when preparing them for the Web, so you know
all you need to know to handle the basics. The following are some extra
tips.
This kind of work requires selecting the parts of the image you want to blur,
feathering the edge of the selection slightly, and masking out the parts of
the image where sharper focus is important. As we said in the beginning,
we assume you already know how to do these things in Photoshop.
If you prefer, you can apply subtle (or not-so-subtle) blurring effects to
your entire image in the Save For Web dialog box, but we generally find
this method too coarse. Blurring, say, an entire portrait makes the subject
look drunk—or the viewer feel that way. Selectively and subtly blurring
large areas of undifferentiated skin tones, while preserving the sharpness
of eyes, brows, hair, and lips, will usually be much more effective. And that
kind of work you do in the main Photoshop window before entering the
Save For Web dialog.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 232
Usually, what you do is give greater weight to the need for crisp typogra-
phy and export the entire image as a GIF, accepting that the photographic
imagery will not render as well as it would have in a JPEG (see Figures 9.8,
9.9, and 9.10).
Figure 9.8
The background image,
a layered photomontage,
wants to be saved as a
JPEG because JPEG would
best reproduce its subtly
modulating hue and
brightness variations.
But…
Figure 9.9
…the typography insists
on being saved as a GIF
because only the GIF for-
mat will reproduce the
crisp, clear lines of type.
A JPEG would soften the
headline and render the
small type as an illegible
blur. So…
Figure 9.10
…the image is saved as a
GIF because type takes
precedence over photo-
graphic nuances. The
image could also have
been saved as a PNG. But
the PNG would have been
far larger and not enough
browsers fully support the
PNG format yet.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 233
Alternately, you could export the human subjects as a JPEG, export the
typography as a transparent GIF, and superimpose the GIF over the JPEG
using any number of web sleights of hand. For instance, you could employ
CSS absolute positioning to layer a crisp, transparent typographic GIF on
top of a soft photographic JPEG. (This would not work in Netscape 3 or IE3
and might destabilize Netscape 4. Thankfully, these browsers are finally
limping away from the playing field, although not as fast as we’d like.)
Depending on the layout, you alternatively could use the old, nonstandard
<bgimage> attribute of the HTML table cell <td> tag to position a photo-
graphic image in the background of a table cell and then place a type GIF
in the foreground. The type GIF would have to be the same size as the back-
ground image and would require GIF transparency to allow the background
to peek through. The size of the GIF would be marked up in the table cell
attributes to ensure that the cell was the correct size. Though this tech-
nique works well in almost every graphic browser since the svelte boyhood
of Fred Flintstone, it is a lot of silly (and nonstandard) markup—and it’s
probably not worth the bandwidth.
Or you could do what Magdalena Donnea did on the front page of her
award-winning personal site, “Water,” at www.kia.net/water/. (Use View
Source to see exactly what Magdalena did.)
As we said, most of the time, you’ll use the GIF format to ensure that your
text is legible. You also might consider rethinking the entire design idea in
favor of one that is more in keeping with the limitations of the Web (see
Figure 9.11).
Figure 9.11
The ever-popular “striped”
effect that dominated the
web in the late 1990s had
its roots in a technique to
minimize bandwidth by
making the most of the
GIF compression algo-
rithm’s preference for
straight horizontal lines.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 234
Onscreen images are like diners inside a burger joint. A mentally challenged
waiter says, “The first gentleman at Table One would like a cheeseburger.
The second gentleman at Table One would like a cheeseburger. The third
gentleman at Table One would like a cheeseburger. The fourth gentleman
at Table One would like a cheeseburger.”
This is how a noncompressed image works. The computer looks up the color
of a pixel and then displays it. It looks up the color of the adjoining pixel
and displays that—and so on and so on for every pixel on the screen.
LZW compression looks at an image line by line and says, “Row #1 is all red
pixels” (assuming that Row #1 actually is all red pixels). Obviously, the
greater the number of pixel rows that are identical to each other, the bet-
ter the compression engine works (for example, four tables of four cheese-
burgers). Thus, horizontal and vertical elements compress better than
diagonal elements because with horizontal or vertical elements, more rows
of pixels can be exactly the same as each other.
Without getting too technical, horizontal lines tend to compress even bet-
ter than vertical ones because LZW compression “reads” images left to right
and line by line, the same way you’re reading this book. If every pixel in a
given line is the same color, that line compresses better, and therefore so
does the GIF (there’s more to it than that, of course). Ten lines containing
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 235
all the same color compress better still. Basically, GIF compression likes
large areas of flat color, whether they are confined to a single line or bleed
down across several. The main point is that an image containing one or
more lines of identically colored pixels will compress much better than the
average image whose colors are arrayed at random.
In 1995, when 14.4 modems prevailed, some clever web designers began
masking every other horizontal line in an image to maximize LZW com-
pression and minimize bandwidth. This technique of masking images
with evenly spaced horizontal lines is known as CRLI compression
(www.infohiway.com/faster/crli.html).
Among many ironies, some web designers exported these striped images in
the JPEG format, where, far from saving bandwidth, the technique actually
wasted it. They knew not what they were doing. CRLI compression is a GIF
thing, baby.
The strengths and limitations of LZW compression are equally profound. For
instance, because LZW prefers straight horizontal and vertical lines to all
others, Roman type tends to reproduce better than oblique. Roman type is
also better at hiding its anti-aliasing artifacts at screen resolutions—
another reason it works better onscreen than oblique does.
Considering these limitations of the medium may lead you to set your
headlines in Roman type more often than oblique. Of course, Roman type
is far more frequently used than oblique to begin with, so this situation is
hardly tragic. But you should be aware of it. Oblique type can certainly be
used for headlines—we do it all the time—but it never reproduces as well
as upright type.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 236
You will run into the same difficulty with lines at almost every angle. The
45-degree angle is the exception: It works perfectly with LZW, like a diag-
onal in a game of tic-tac-toe. As you might expect, 45-degree angles came
into vogue around 1999 because they reproduce well on the Web, and
within six months they were popping up in print and TV as a meaningless
design fetish after everyone had tired of the striped effect. And as you
might also expect, many web designers employed 45-degree angles in
JPEGs, then saved the JPEGs at the highest possible quality settings to pre-
serve the crispness of their lines. The result: wasted bandwidth.
PNG
The PNG format was developed in hopes of establishing it as an open
standard for graphics on the Web—which it now is (see www.w3.org/
Graphics/PNG/). But while PNG was slowly being developed, working web
designers had to create websites, and all browsers supported GIFs. In effect,
then, GIF is a long-standing, unofficial defacto standard based on a pro-
prietary compression algorithm, while PNG is a nonproprietary, officially
sanctioned standard that is not as well supported as it ought to be.
There are two forms of PNG. PNG-8 is an 8-bit format (like GIF). PNG-24
offers 24-bit color (like JPEG), yet its sharpness and quality put JPEG to
shame. To create PNG images for the Web, simply choose PNG-24 or PNG-
8, 128 Dithered in Photoshop’s Save For Web dialog box or in ImageReady.
PNG is still not natively supported in enough web browsers, and though
support is growing, PNG is unlikely to supplant GIF or JPEG any time soon.
For one thing, PNG, while high in quality, is often high in bandwidth as well.
For another, while PNG stays crisp in milk (like GIFs do), the PNG format
does not support animation. GIFs are therefore seen as more versatile by
those who even bother to lift their heads out of their cubicles and think
about these issues.
To see why PNG can be cool indeed, if your browser can handle it, visit the
Audio site at www.panic.com/audion/faces.php, click any thumbnail, and a
PNG image will pop up on the screen. Drag the image from place to place
on the page at your pleasure. You can even drag it off screen (as shown in
Figure 9.12).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 237
Figure 9.12
PNG a ding-ding. On the
Audion site, you can bask
in the glories of the PNG
format—glories that
include true alpha channel
transparency, rich color,
and crisp detail. (But only
if you’re packing the right
browser.)
Notice that the PNG format offers true alpha channel transparency—it
matches any background you drag it over. No more halo effects caused by
mismatched anti-aliasing, no more ring around the collar. Notice too that
PNG offers crisp imagery as well as rich color.
Notice that the page only works in IE5 for the Macintosh. Bummer. Even-
tually all browsers will support PNG natively.
ANIMATED GIFS
Animated GIFs are nothing more than a series of frames (or individual GIFs)
that have been joined together to create the illusion of motion. They can
loop endlessly or play once and then stop. We could include a screenshot
here, but what’s the point? If you haven’t seen animated GIFs, you’ve never
used the Web. (Hint: look at the ad banners that clutter most commercial
content sites—web animation in a nutshell.)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 238
Back in the day, web designers used free shareware tools to create ani-
mated GIFs, after first preparing each individual image, saving it as a GIF,
and then running all resulting GIFs through DeBabelizer, a cumbersome
color management tool that ensured that the colors would match between
frames. (Nothing ruins the illusion of motion faster than an unexplained
color shift between one frame and the next.)
Today all that work is merely a memory because Photoshop comes with
ImageReady, and ImageReady makes it easy to create, optimize, and save
GIF animations.
Animation for its own sake is charmless, abrasive, and amateurish. Good
web designers use animation as they use everything else: with taste and
skill in support of a concept and brand image. The creators of www.k10k.net
employ animated GIFs well. The animations are revealed when rolling over
the miniature content header graphics.
For instance, if you wish to animate an arrow, you can draw the arrow on
one layer in Photoshop then jump to ImageReady and open the animation
palette. Create a new frame and drag the arrow manually to the left or
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 239
right. Create a third frame and drag the arrow again. ImageReady “remem-
bers” the location of each arrow and will render an animation as a result
of these manual movements.
We could blab on about this, but the Photoshop owner’s manual does a
great job of explaining everything. The way we see it, if you own Photo-
shop, read the manual. If you don’t own it, there’s no sense in reading about
it here and probably not much sense in planning a web design career. (Gosh,
that sounds like a product endorsement.)
TYPOGRAPHY
A designer’s interest in typography usually borders on obsession. On the
Web, you’ll get plenty of opportunities to indulge your fetish. As part of
establishing the look and feel of a site, the web designer is responsible for
all of its typographic choices, including
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 240
The main thrust of our look at typography will not be body text (covered in
Chapter 10) or logo design (covered previously in this chapter). Instead, we
will discuss the basics of using Adobe Photoshop and ImageReady to cre-
ate typographic GIFs for the Web. We’ll also further examine how anti-
aliasing can work for or against your web designs.
Previously, such details as leading, kerning, and tracking were the exclu-
sive province of Illustrator, and most serious web designers would create
their typography in Illustrator and then cut and paste it into Photoshop.
Some still do that, and you might prefer to as well. Illustrator offers useful
keyboard shortcuts for kerning and other typographic functions. Many of
those keyboard shortcuts are missing from Photoshop, making the process
a bit less streamlined.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 241
Photoshop 5.5 and higher also allows you to select an anti-aliasing option
for type, apply simulated styles to type, and turn off fractional character
widths to improve the appearance of small, bitmapped type displayed at
low resolution.
Anti-Aliasing
As all designers know, anti-aliasing enables you create the appearance of
smooth-edged type by partially filling in the edge pixels with intermediary
colors. For those who don’t know, we provide the following handy exercise.
Launch Photoshop and create a new blank document with a white back-
ground. Work at 72ppi. (We always work at 72ppi on the Web.)
Select the type tool. Click in the image to set an insertion point.
Enter some text in the Type Tool dialog box (Photoshop 5.5) or directly on the
image (Photoshop 6). Format the text however you like. For the sake of argu-
ment, we’ll type our names in black, 24pt. Helvetica. “Crisp” anti-aliasing is
chosen by default. (If it is not, choose it now.)
The purpose of anti-aliasing is to fool the eye into seeing type as smoothly
rounded in spite of the low resolution of computer monitors.
Anti-aliasing is also used for images unless you’re deliberately going for a
bitmapped, pixellated look. And you’re usually not. Whether for type or
images, it can cause problems when working with GIF transparency.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 242
Open Photoshop and create a new blank document with a white background.
Choose any two web-safe colors from the Photoshop Color Picker or the Vis-
iBone web palette. For the sake of argument, we’ll choose a dark purple and
a light green.
Select a circular area and fill it with the foreground color (dark purple).
Choose GIF (choosy mothers choose GIF) and click the Transparency checkbox.
Create a new basic HTML document with a background color to match the
light green (transparent) background of your GIF image.
The circle should look good and should have a soft edge thanks to anti-
aliasing.
Return to the HTML document and change the <BODY> background color to
a new, contrasting color. Say, black (#000000).
Save the file and reopen it in the web browser.
How do you anti-alias a transparent type (or image) GIF when the site uses
a gradient background image or a random texture?
You can’t. So avoid using those types of backgrounds unless you never need
to set transparent GIFs in the foreground.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 243
You should avoid gradient background images anyway because they will
dither horribly on 256-color monitors, don’t render properly in the GIF for-
mat, and if exported as JPEGs cannot be web-safe.
And you should avoid busy random textured backgrounds as well because
they are generally hideous, and they make text harder to read. Even beau-
tiful pages developed with subtle background tiles are not much use if no
one can read the text they contain.
The PNG format mentioned earlier offers real transparency, which means a
PNG image could be used against any type of web background without ill
effect. But the trouble with PNG is…well, we’ve covered that to death
already.
In the Type Tool dialog box, select an anti-aliasing option from the pop-up
menu. Choose:
■ Crisp to make type appear sharp. This is the default setting. It renders
well and uses less bandwidth than Strong or Smooth.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 244
Experiment with different sizes and faces to get a feeling for which type of
anti-aliasing is appropriate for each face, size, and weight. This also varies
depending on the background being used, the visual interaction of other ele-
ments on the page, and so on. Most web designers choose Crisp most of the
time.
General Tips
As just mentioned, the smoother or heavier the anti-aliasing, the greater
the number of edge pixels in various shades, and the more bytes the result-
ing GIF image will require. When bandwidth is at a premium—and it is
always at a premium—err in the direction of Crisp.
Not all type needs to be anti-aliased. Smaller type might be easier to read
with no anti-aliasing at all. For instance, 10px Helvetica will be easier to
read (and will use up less bandwidth) if you choose “None” in the Anti-
Aliasing dialog box. But rather than create GIF type of that nature, a more
responsible course would be to use HTML and CSS to create small bits of
web type because such text may be easily copied, pasted, and indexed by
search engines—whereas type GIFs are simply images.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 245
It helps to think of your type GIFs as icons, which must be rendered pixel
by pixel in a 72ppi environment—because that is essentially what they are.
Anti-aliased fringe colors must use up an entire pixel (there are no half-
pixels). Now add subtle ascenders and descenders to this mix, attempt to
wedge such nuances into discreet pixels, and you can see why serifs work
poorly onscreen.
You also can see why typographic colors should be web-safe. Add dither-
ing to the unholy mix of anti-aliasing and serifs, and you have an illegible
mess.
This inherent preference for sans serifs on the Web might be behind the
present resurgence in Helvetica. We could be talking through our hats, but
we haven’t heard a better theory, and as we’ve shown earlier, web styles
have been entering mainstream media as fast as designers could rip each
other off.
From this discussion, it might seem that the Web is no place for fine typog-
raphy. But that is not the case. Juxt Interactive is one agency that creates
superb type treatments online, and their work repays careful study
(www.juxtinteractive.com).
Space Patrol
In most cases, web type is more readable when it is widely spaced because
such spacing makes allowances for the imprecise spreading of unruly edge
pixels. So when setting type, try loosening your tracking in the Type dialog
box. If you’ve done any TV design, it’s pretty much the same thing. If you
haven’t, just trust us.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 246
In most cases, HTML text can be resized by the user. Type GIFs cannot. Keep
in mind that small type that looks great to you might be difficult or impos-
sible for folks with impaired vision to read.
If you were wondering why you see so much large bold sans serif typogra-
phy on the web, now you know. It’s not that web designers are copycats.
Well, we are, but it’s not just that. It’s that we’ve learned by experience that
small fonts, sans serif fonts, and tightly kerned text can all be problematic
for the people who use our sites.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 247
What this means in the context of Photoshop is that you will be creating
a lot of comps until you truly crack the interface problem, and then you
will be refining your comps based on feedback from user tests.
When the perfect interface has been designed in Photoshop, there is still
more to do. Often, the design team will implement a menu bar that changes
state via JavaScript as the visitor navigates the site. On the simplest level,
changing state means that the menu bar subtly indicates where the user
is within the site structure. For instance, when the visitor reaches the About
section of PlanetRX (http://www.planetrx.com/information/about.html),
the About portion of the menu bar is highlighted to remind the visitor “you
are here.” Refer back to Chapter 3’s Figures 3.2 and 3.3 to see how this “you
are here” state change is handled on the Gap site.
Changing state to reinforce the visitor’s position within the site can be
accomplished by simple HTML, via JavaScript, or with the help of publish-
ing systems that swap visual elements on-the-fly. The choice of imple-
mentation varies by the scope of the site and the size of the budget. On a
small site, the menu bar can be changed via HTML or JavaScript. On a very
large site that is constantly updated, a publishing system will probably be
used.
Typical navigation menus also “light up” or otherwise change state when
the user drags the mouse cursor over a given menu item selection. Again,
this is accomplished via JavaScript, and again, though there is no substi-
tute for home-cooked code (or working with good developers), ImageReady
can help out, as we are about to see.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 248
But after they are created and chosen, all of these elements are generally
layered into a single Photoshop comp, which is used to sell the work to the
client (see Figure 9.13). Of course, as we’ve just said (and as Chapter 7
explained), this “selling” is a multistage process, with continual refinement
occurring based on research, user testing, and the client’s strange whims.
Figure 9.13
Here is a Photoshop web
layout that combines
photography, logos, and
interface elements. We
used this layout to sell
a final web design to
JazzRadio.Net
(www.jazzradio.net).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 249
After it’s sold, production begins, and at this point Photoshop’s ImageReady
module comes into its own. Knives were made to slice cake, and
ImageReady was made to slice web comps. The process begins by dragging
Photoshop guidelines across any area that will have to be sliced—for
instance, dragging guidelines to separate one menu bar item from the next
(see Figure 9.14).
Figure 9.14
The next phase is dragg-
ing Photoshop’s guides
to mark areas to be con-
verted to slices in the
ImageReady module.
(Photoshop 6 can create
the slices itself.) Though
slicing such comps is the
normal next step, for this
project we opened a text
editor and re-created the
layout in HTML and CSS to
minimize bandwidth and
enable the layout to
squash or stretch in true
“liquid” fashion.
With Photoshop 6, you can create and name slices right in the Photoshop
program itself. With Photoshop 5.5, having dragged guides, you “Jump to
ImageReady” via the File menu and automatically convert your guides to
slices at the touch of a button. ImageReady generates the relevant HTML,
animations (if any), and JavaScript rollover functions (if any). We don’t
mean to imply that this happens instantly, of course. There is a great deal
of typing, dragging, and layer selection involved.
Rollovers are created by selecting new layers for each rollover state and
typing the relevant URL and text (if any) in the Slices dialog box. Now you
can see why rollover states are visually designed during the comping phase.
Not only does this satisfy the client, it also enables you to focus on pro-
duction tasks without worrying about previously unconsidered design
issues.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 250
After the process is completed, sophisticated web designers take the HTML
and JavaScript generated by ImageReady, open it in an HTML text editor
such as BBEdit, PageSpinner, or HomeSite, and edit as needed. For exam-
ple, you might substitute a simpler JavaScript function for one generated
by ImageReady.
Most professionals will use ImageReady to generate slices and raw HTML,
then tighten up its markup for better standards compliance and lower
bandwidth, and replace its often complex scripts with simpler ones. In large
web agencies, web technicians will perform these tasks.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 251
THINKING SEMANTICALLY
Photoshop and ImageReady perform vital tasks splendidly, but what they
cannot do is generate semantic websites predicated on the separation of
style from content. Being visual tools, they necessarily create visual sites—
and of course this is what most clients want and what most designers are
comfortable with. But this is not the only way and not necessarily the best
way to create websites.
Visual sites are a comforting link to the past, to our history of print and
package design—of concrete objects made beautiful and intelligible
through precise design. Semantic sites are something else again.
Because they are rooted in images, and images are necessarily of fixed and
specific sizes, Photoshop and ImageReady generate image-laden sites laid
out in HTML tables with specific heights and widths. They do not generate
the Liquid Design we discussed in Chapter 2 because it is not in the nature
of a pixel-based program to develop abstractions of form. And certainly
they cannot separate style from content because style is their content.
So separating style from content becomes your job, if you choose to accept
it. As an interim step, what we’ve done in our shop over the past two years
is confine ImageReady’s slicing skills to key elements that must be precisely
sized—for instance, to branded navigational menu bars. But whenever pos-
sible, instead of slicing entire comps to create precise graphic web layouts,
we use our comps as guidelines to create HTML (or, even better) CSS equiv-
alents that are loose, flexible, and fairly minimalist.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
13 0732 CH09 4/24/01 11:22 AM Page 252
We have now broached the vital next step in the web’s history: the sepa-
ration of style from content. Meanwhile, in our discussion of web typogra-
phy, we have so far avoided the specifics of coping with actual web texts
as opposed to decorative elements. So maybe it’s time to look at a tech-
nology that handles both the separation of style from content and the need
for precise typographic control of web text.
The people of earth call it CSS, and the next chapter will explain how it
works—and what to do when it stops working.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 253
chapter 10
IN THE BEGINNING WAS THE WORD: without style and unadorned on a plain gray
background.
The scientists who envisioned the Web saw it as a place for reasoned dis-
course conducted through documents whose structure was as logical as
the arguments they propounded. HTML would present content and struc-
ture, and the browser (or User Agent) would interpret it visually, according
to its own built-in rules of display. <h1>Headlines</h1> would look like
whatever the browser decided they should look like (typically, 24pt. Times).
<p>Paragraphs</p> would look like whatever the browser decided they
should look like (typically, 12pt. Times).
In early browsers such as Mosaic and Netscape 1.0, web page backgrounds
were generally gray. Why did browser developers choose this dingy color?
The answers are lost in the mists of time. In other words, we have no idea.
But we do have a theory. Namely, images seemed to want to appear against
a black background for maximum contrast and impact. Text, of course,
wanted to appear on white. We’re guessing that the makers of the first
browsers compromised by giving us a washed-out gray that would provide
rudimentary contrast for either type of foreground element. Regardless of
their reasons, the resulting web pages were not much to look at.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 254
254 HOW: Style Sheets for Designers: Tag Soup and Crackers
Netscape gave us the <FONT> tag. We could control the size of our text,
regardless of its structural context. (We could, for instance, make para-
graphs really big <FONT SIZE=”7”> and headlines really small <FONT
SIZE=”1”> even if such approaches contradicted the underlying document
structure.) Microsoft gave us the <FACE> attribute for the <FONT> tag. We
could control typography in a limited, Flintstonian fashion. <FONT
FACE=”ARIAL, HELVETICA”> would make text on the page appear in Arial
if the visitor’s operating system offered that font. If not, the text would
appear as Helvetica. If neither font were available, visitors would see their
default typeface (probably Times).
At the same time, designers began using HTML tables to control their lay-
outs, a practice most of us still follow, though it runs counter to the struc-
tural nature of HTML. The practice has another downside as well: It yokes
our presentation to our content, making it harder or even impossible for
those with disabilities or those using nontraditional browsers to access the
information on our sites.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 255
Many of us went beyond using tables and text images. We harnessed invis-
ible powers to our task. As you know, in Photoshop any layer may be fully
or partially transparent. Images in the GIF format are limited to 256 (or
fewer) colors, any one of which may be designated as transparent. Using
Photoshop, web designers created small (1 pixel by 1 pixel) GIFs filled with
a single, transparent color. We then used these transparent GIF images to
control the positioning of elements on the page, as if we were designing
for a fixed medium like print.
Notice the height and width. Netscape’s browser likes it when you indicate
the size of images used. This helps the browser leave space for the images,
even before they have finished downloading. A tangential aspect of the
whole affair is that browsers will display your images at any size you tell
them to. Thus a 1 pixel by 1 pixel transparent.gif could be 100 pixels wide
by 100 pixels tall if you marked it up that way in your HTML. These crude
feats provided rudimentary layout control, while HTML itself did not.
That was the key. HTML, practically the only tool at our disposal, provided
no typographic or layout control. So most of us deliberately deformed the
simple markup language in hopes of forcing it do our bidding. We made a
“tag soup” of the Web, using <TT> (“typewriter text”) to force the browser
to display a monospaced font (usually Courier). To create vertical space, we
deployed transparent GIFS or typed structurally meaningless carriage
returns such as:
<br><br><br>
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 256
By means of these stunts, the Web began to look better on the surface, but
the markup that was supposed to hold it together was becoming less and
less meaningful, more and more fragmented. Documents made less and less
structural sense and were more and more tied to the quirks of specific
browsers. “Use Netscape so you can see this page!” we screamed at our
viewers in the mid-1990s.
CSS is the best friend a visually oriented web designer ever had, but sup-
port for this crucial standard has been a long time coming. In the follow-
ing section, we’ll gently introduce you to CSS, showing how and why it
works. Afterward, we’ll talk about what can go wrong with CSS and pres-
ent a detailed No Fault CSS Plan that enables you to harness the power of
style sheets without running afoul of buggy browsers. The good news about
all of this is that most current web browsers now offer good-to-excellent
CSS support. The bad news is that older, inferior browsers are still in use,
though they are fading away over time (see the section, “The 18-Month
Pregnancy” in Chapter 2, “Designing for the Medium,” for comments on this
topic).
As a last prefatory note, you might find yourself working at a large web
agency—one where web designers spend most of their time in Photoshop
and Illustrator, while HTML production chores are handled by a separate
group of professionals. Even at job like that, you will still need to know CSS.
Why? It’s because even when HTML chores are assigned to web technicians,
it is almost always the web designer’s job to create the style sheet.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 257
That may seem puzzling. If web technicians and developers handle all other
markup and coding, why wouldn’t those professionals also be called upon
to write the site’s style sheet? The answer is simple—style sheets control
typography and layout, and that makes them the designer’s responsibility.
(You don’t really want a programmer deciding how your web typography
should look, do you?)
As this list suggests, CSS is a very powerful standard that can replace the
use of HTML tables to control layout; end the use of <FONT> tags to con-
trol web typography; and do much more than tables and <FONT> tags ever
could (see Figure 10.1).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 258
Figure 10.1
The New Year’s 2001
Greeting at zeldman.com.
The background image,
text, and “core” button are
exactly positioned via CSS,
which also creates the
black outline and back-
ground colors. Notice that
the image hugs the upper
left corner of the browser
window, a feat that is
easily achieved by using
CSS to set margins and
padding at “0.” JavaScript
was used to route
Netscape 6 users, IE5
users, and Opera 5 users
to subtly different pages
(www.zeldman.com/
2001.html).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 259
While this old system works, and while it is used in literally millions of sites,
it has two powerful disadvantages:
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 260
After all those hours of labor, if the client requests a design change, many
more hours of labor must be put in, as the designer or web technician man-
ually searches for and replaces all those annoying <FONT> tags.
It’s a dumb way to work. With style sheets, the web designer can change
just one document—a global style sheet—and the layout and typography of
the entire site will be instantly changed. Hundreds of hours of the dullest
sort of labor can be saved in this way. If style sheets are used to control
layout as well as typography, the savings in labor (and client costs) can be
even more profound.
What can you do with the client dollars saved? You can spend them on
design, programming, writing, photography, illustration, research, testing,
marketing, and maintenance. With less of it wasted on monkey work, the
same budget now enables you to create a richer, more powerful site.
Another bonus is that after putting every ounce of our experience and tal-
ent into the design of web pages, we typically turn the sites over to our
clients, who then update the sites as needed. Websites are not carved in
stone; a site that’s not minty-fresh is a dead site. How many clients have
a background in design and extensive knowledge of web technology?
We’ve been lucky enough to find precisely one such client in nearly six
years of doing this work.
As explained in Chapter 7, “Riding the Project Life Cycle,” often during the
hand-off and maintenance phase, a junior or mid-level person with no
design experience and little web knowledge is made responsible for the
site’s maintenance and updating. Frequently, “refreshing the site” is merely
one of that employee’s daily duties. The more our pages are filled with
<FONT> tags, complex tables and framesets, the sooner that overworked
web coordinator can turn the site into an eyesore as well as a usability
nightmare. By separating design elements from content, we make it much
harder for our clients to destroy the sites we’ve worked so hard to create
for them. CSS is our friend.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 261
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 262
Figure 10.2
The Daily Report at
zeldman.com uses CSS
to control typography but
traditional HTML tables to
lay out the page. CSS-
capable browsers are on
the market, but so are
Netscape 4 and IE3—two
old browsers whose sup-
port for CSS is problem-
atic. Because Netscape 4
users can crash from CSS
layouts and IE3 users can
barely see them, an
interim approach was
taken. When these old
browsers have faded into
disuse, the same page will
be designed entirely in
CSS (www.zeldman.com/
coming.html). We refer to this two-pronged, “safe” approach as No-Fault CSS, a tech-
nique we began recommending in 1998 in the A List Apart “Fear of Style
Sheets” series:
■ www.alistapart.com/stories/fear/
■ www.alistapart.com/stories/fear2/
■ www.alistapart.com/stories/fear3/
■ www.alistapart.com/stories/fear4/
The series was designed to evangelize CSS use in spite of browser compli-
ance problems by showing which CSS techniques to avoid and which could
be safely used.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 263
In turn, this separation of style from content will enable designers, pro-
grammers, and web technicians to more capably use additional web stan-
dards, such as JavaScript and the Document Object Model (DOM), to build
truly dynamic, interactive sites.
BODY is the first selector, while the text within brackets is the declaration.
Each declaration consists of one or more properties, followed by its asso-
ciated values. For example, in the first line, background is a property, and
white is declared as its value. font-family is a property, and the fonts listed
are possible values for that property. This terminology is confusing at first,
but working with style sheets is actually very easy. Let’s look more closely
at the following example:
The first line indicates that the BODY of the HTML document will use a
white background and that typography throughout the entire page (unless
otherwise noted via an additional selector) will be in the Helvetica family.
If the user does not have Helvetica on his or her system, the type will be
displayed in Arial. If Arial is not available, a generic sans serif will be used.
Finally, margin-top: 0 tells the browser to start the web page at the top of
the browser window, rather than “helpfully” offsetting it with an unpre-
dictable or inconsistent vertical margin.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 264
264 HOW: Style Sheets for Designers: Working with Style Sheets
Font families are displayed in the order with which they are written. If the
user has both Arial and Helvetica on her system, Helvetica will be displayed
because it is listed first. In this way it is possible for designers to specify
“best-case” scenarios while providing backup options. Remember: The first
font listed will be displayed if it is available. The old <FONT> tag worked
the same way.
Recognize the awesome power of style sheets. In a single line, the typeface
has been provided for an entire site. Imagine typing all those <FONT
FACE=”HELVETICA, ARIAL, SANS-SERIF”> tags instead. Yuck.
BODY {margin-top: 0; background: white; font-family: helvetica, arial, sans-serif;}
Note also that the background color has been written out as “white.” Any
color may be used, though as has been discussed before, it is always best
to use web-safe colors.
Colors need not and usually should not be specified by name because
names do not necessarily trigger web-safe colors. Instead of white, the
designer could have specified the hexadecimal code for that color: #ffffff.
It is even possible to use “shorthand” and specify only the first letter of each
hexadecimal pair (#fff). This will be clearer with a color such as #ff9900,
which can be written as #f90 in the style sheet, saving the designer three
strokes of the keyboard and saving the user an infinitesimal amount of
bandwidth.
Note that the H1 (headline), P (paragraph), and LI (list item) have had their
sizes specified in pixels:
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 265
Note also that it is possible to specify bold (or light, or italic, or italic bold)
and that for the first time in web design history, it is also possible to cre-
ate Quark-like leading in HTML text. Okay, you’re new to web design, so
you’re not impressed. We’ve had leading in desktop publishing tools since
Nixon wore short pants—but not on the Web, sister. On the Web, this is
some cool new stuff.
line-height: 150%
This declaration means that the text will have leading of 150%. Any num-
ber may be chosen. Line-height can be 110%, 200%, or 75% (for special
effects involving overlapping text). Assume 100% as a default, which need
not be written. (Actually, the built-in leading seems to be closer to 110%,
but again, unless you are specifying leading for a reason, leave it out to
avoid creating problems.)
line-height: 18px;
P, LI {font: 12px/18px;}
The first number (12px) is the font-size; the second (18px) is the line-
height. All CSS-capable browsers understand this shorthand.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 266
266 HOW: Style Sheets for Designers: Working with Style Sheets
Leading on the Web serves exactly the same purpose as leading in print: it
adds air to the “page” and enhances readability. On the screen-based Web,
with its low typographic resolution, anything we can do to encourage read-
ability is all right by us. By contrast, reading may be discouraged when we
fail to apply leading and other CSS niceties to our text (see Figure 10.3).
Figure 10.3
The Adobe web column,
written by your humble
author, but laid out by
Adobe’s online design
team. CSS is used to
control typography, but
the small text is tough on
the eyes. CSS leading and
a larger font-size would
make the reading experi-
ence more pleasurable.
This typographic approach
works well for image
captions, a staple of the
Adobe site, but it is less
well-suited to longish
articles (www.adobe.com).
Now that we’ve taken a brief look at the rudiments of CSS, let’s see how
web designers can make this work on a site.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 267
2. The designer saves this document with a filename ending in .css. For
instance, the name could be style.css, or clientname.css.
3. This CSS file is then uploaded to the server via FTP, just like an HTML
file.
4. Next, in the website’s HTML files, the designer inserts one additional
line of code within the <HEAD> tag:
<html>
<head>
<title>Welcome to Widgets.com</title>
<link rel=”stylesheet” HREF=”style.css” TYPE=”text/css”>
</head>
<body>
…and so on.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 268
268 HOW: Style Sheets for Designers: Working with Style Sheets
5. The <link> tag calls up the separate syle sheet file (style.css) and uses
its contents as instructions for displaying the page.
Note that it is possible to link to a CSS file using a relative path (“../styles/
style.css”), a rooted URL (“/path/from/server/root/style.css”), or a full URL
(http://www.widgets.com/styles/style.css). This style sheet will now control
any web page that links to it via the additional line of code within the
<HEAD> tag. An entire site can be controlled in this way.
<html>
<head>
<title>Style Sheets Rule!</title>
<style type=”text/css”>
<!--
BODY {background: #ffc; font-family: palatino, georgia, times new roman, serif;}
P {font-size: small; line-height: 125%;}
.sub {font: large bold arial, helvetica, sans-serif; margin-top: .25in;}
-->
</head>
<!--
-->
What else is new in this example? The CSS is preceded by a tag that tells
the browser how to interpret it:
<style type=”text/css”>
A more complete heading tells the browser not only that what follows is
an embedded CSS, but also tells what type of media the CSS is intended to
support:
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 269
The idea is that a document can link to several style sheets. For instance,
one controls screen presentation (MEDIA=”screen”), another printing, and
a third audio browsers. Not all browsers support this as of now, though it’s
a good idea to begin fully spec’ing your CSS anyway.
In a Class by Itself
All of the preceding is straightforward, but what does .sub mean in this line?
.sub {font: large bold arial, helvetica, sans-serif; margin-top: .25in;}
The selector labeled .sub is a unique class, created by the web designer for
his or her own particular design needs on this page.
That’s correct. CSS not only gives web designers the power to style traditional
HTML markup, it also enables them to create and style unique items to suit
their needs.
For instance, here, the web designer wished to create a special subhead class
with a quarter-inch margin at the top. She decided to call it sub because the
name was easy to remember and indicated the purpose (subhead) for which
the class was created. The designer could have called this class unclecharlie
if she wished.
To make use of this special class, the web designer will refer to it in the HTML
document in this way:
<div class=”sub”>Here is my subhead, with a quarter-inch margin at the top.</div>
In the web page, the line, Here is my subhead, with a quarter-inch margin at
the top would be large, bold, Arial or Helvetica (or generic sans serif) with
(surprise!) a quarter-inch margin at the top.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 270
270 HOW: Style Sheets for Designers: Working with Style Sheets
She could create an entire class just for that line of text and include that
class in the site’s global style sheet, but why create an entire class for one
line of text on a single web page? Inline styling does the job better:
<p style=”font: 12px monaco, monospace;”>
Greetings from the I.R.S.</p>
<div align=”center”>
<form>
<input
type=”button” style=”font-size: 12px; font-family: geneva, arial; background-color:
#ff6600; color: #ffffff;”
value=”Previous Reports”
onClick=”window.location=’com0400d.html’;”
onMouseOver=”window.status=’More of same.’; return true;”
onMouseOut=”window.status=’’;return true;”>
</form>
</div>
Form elements also may be styled via DIV classes in a global style sheet. If
every <FORM> button on your site is supposed to be orange (#ff6600) and
use 12px Geneva or Arial type, by all means create an orangebutton
class for the site, declare it on the global style sheet, and then refer to it in
individual HTML pages, like so:
<div align=”center”>
<form>
<input
type=”button”
class=”orangebutton”
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 271
value=”Previous Reports”
onClick=”window.location=’com0400d.html’;”
onMouseOver=”window.status=’More of same.’; return true;”
onMouseOut=”window.status=’’;return true;”>
</form>
</div>
Thus support for CSS lagged, and problems abounded. In 1998, The Web
Standards Project (www.webstandards.org) was formed to advocate and
shore up support for CSS and other web standards, and A List Apart
(www.alistapart.com) began running the “Fear of Style Sheets” series.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 272
So until IE3 and Netscape 4 leave the market, many of us will probably keep
using HTML tables to create our web layouts. Web pages laid out with
HTML tables will work in Netscape 1, 2, 3, 4, and 6; in IE 2, 3, 4, 5 and
beyond; and in all other graphical browsers, including Opera and iCab.
If you’ve been following along, you’ll realize this means that web design-
ers still cannot safely separate style from content on commercial projects
and will continue to face difficulties in creating sites that work well out-
side the traditional desktop computer-based browser. But in the trenches,
where work gets done, it also means that we can create sites that work for
our clients and our clients’ audiences.
By late 2001 or soon after, we should be free to truly harness the power of
CSS. Meanwhile, on personal, noncommercial projects, we can explore the
full potential of CSS and other web standards without fear of hurting our
clients’ customers (see Figure 10.4). It is hoped that these noncommercial
usages of CSS and other web standards help widen interest in emerging
technologies and encourage quicker adoption of newer, more standards-
compliant browsers.
Figure 10.4
Web Trumps, a card game
featuring well-known web
personalities, uses CSS to
control the positioning
and layering of every
image on the page and
JavaScript to reveal new
layers during game play.
Web Trumps is a mini-
masterpiece of graphic
design and web program-
ming—but one requiring
the use of a modern
browser. Experiments like
this help hasten the day
web designers can apply
the same level of sophisti-
cation to commercial
designs without worrying
about browser incompati-
bilities (http://
pixelflo.com/008/).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 273
The CSS line-height property solves all the old problems, but it can lead to
new ones, particularly in older browsers whose support for CSS is largely
theoretical. For instance, in the following example, if CSS line-height is
specified for the <p> tag, the image will float on top of the text in both
IE3 and early versions of Navigator 4:
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 274
den behind an image, it is best to hope and pray that most Netscape 4.x
users are equipped with a more recent version of the browser. Alternately,
the designer can create pages that use no images whatsoever—scarcely an
attractive option. Finally, the designer can wrap images inside table cells,
given that doing so seems to solve most of these problems—at the terrible
cost of adding needless, bandwidth-wasting and time-consuming code to
every single web page.
The good news of course is that Netscape 6 avoids all these problems, and
Netscape 4, like other old browsers, will gradually wither away. The bad
news is it hasn’t withered away yet. So proceed with caution.
1. Use pixels (not points, not .ems, not percentages, not keywords) to
specify your font sizes.
2. Or use nothing. Do not specify font sizes at all, and let the browser’s
stylistic defaults and the visitor’s preferences take care of the rela-
tive size relationships. This approach is detailed in the “Dao of Web
Design” article at A List Apart (www.alistapart.com/stories/dao/)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 275
Yet many times our best CSS efforts fail in one browser or another.
Even though the CSS Level 1 standard was finalized in 1996, the first
browser to meaningfully support it did not appear until the year 2000
(Internet Explorer 5, Macintosh Edition). Fortunately, Netscape 6 (multiple
platforms), Opera 5 (multiple platforms), and Konqueror (Linux/UNIX) soon
followed, with commendable CSS support of their own. But each of these
fine browsers enjoys only a relatively small market share as of this writing.
Faced with these inconsistencies, many web designers have avoided using
CSS altogether. A few brave souls have leaped ahead to fully exploit the
power of CSS in spite of the dangers posed to old browsers. Other web
designers and developers have followed the “No-Fault CSS” plan outlined
in A List Apart’s “Fear of Style Sheets” series, whether they picked it up at
ALA or figured it out on their own.
What works? Pixels or no sizing at all works. How can we make this auda-
cious claim? We’ll let an expert make it for us. Take a sad look at Web
Review’s Master List and see the inconsistencies for yourself:
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 276
“The mother of all CSS (Cascading Style Sheet) charts,” which lists every
aspect of the CSS spec and identifies how well it is supported by various Mac
and Windows web browsers.
If the Master List did not convince you (or if you could not quite grasp its
meaning), we’ll look at the alternatives one by one:
H1 {font-size: 14pt}
H1 {font-size: 14px}
H1 {font-size: x-large}
H1 {font-size: larger}
H1 {font-size: 1.5 em}
H1 {font-size: 125%}
Points of contention
Points are the units of measure with which designers are most familiar—
from their years of creating print layouts in Quark XPress or similar pro-
grams. Unfortunately, points are meaningless on the Web. Points function
as units of print, not as units of screen space. (Pixels are the only mean-
ingful unit of screen space.) Due to platform and resolution differences,
14pt. can mean many things. What it does not mean is a specific unit of
screen size.
Points are included in the CSS spec so that designers can set up a second
style sheet for printouts, as mentioned earlier in this chapter—one CSS doc-
ument to control the way the display looks on the screen and a second for
printing.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 277
In your print-oriented style sheet (if the browser supports this), it makes
perfect sense to use points because printers understand points and can be
thrown for a loop by pixels. In some older browsers, 12px type gets printed
as 12 pixels, and those pixels are computed against the printer’s resolution.
Got a 1200ppi printer? Your 12px type could be .01 inches tall. To avoid
that kind of lunacy, points should be used in style sheets devoted to the
printer—and nowhere else. (Better browsers recalculate style sheets
according to the needs of the printer, but your visitors may not be using
these browsers.)
In the world of print, there are approximately 72 points per inch. To match
this, Mac OS offers a default resolution of 72 pixels per inch, mapping pix-
els to points (give or take a fraction). Of course, as soon as the Mac user
changes her screen resolution, all bets are off. In Windows and other PC
operating systems, there are 96 pixels per inch—until the PC user changes
her screen resolution, and then all bets are off.
What this means is that point sizes are incompatible between Mac OS and
Windows right from the get-go. For instance, when a Windows client sends
a Microsoft Word document to a Mac-based graphic designer, the type is
often too small for the designer to read. The same problem traditionally
plagued web pages.
Leaving aside the fact that most users change their screen resolution (and
therefore all bets are off), savvy developers have used JavaScript to serve
appropriate point-size-based style sheets to Mac users versus PC users. It’s
more complicated than using pixels, but at least it used to work.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 278
This is not evil hegemony; it is simply common sense in that the more
closely browsers adhere to commonalities, the less likely web users are to
get hurt. Windows’ default resolution is no better or worse than Mac res-
olution. But it is the most commonly used resolution, so more sites are
designed to accommodate it. Treating it as a de facto “standard” prevents
Mac users from being hurt by the poor authoring practices of some web
developers.
“Aha!” cries the Scripting Brigade. “So all we have to do is add a few more
lines of code to our browser detection scripts, and we can serve Windows-
size type to Mac users if they are surfing with IE5 or Netscape 6 and Mac-
size type if they are using older browsers?”
Not so fast, buckos. IE5/Mac starts at this default resolution but enables
users to change it. They can change it back to standard Mac resolution (and
how will you know if they’ve done that?). Adept users can change it to a
size based specifically on their screen resolution, and Netscape 6 users can
change their font size to any arbitrary value that strikes their fancy. You
have no way of knowing if they’ve done this or not. Therefore, using
JavaScript to detect the user’s browser and platform tells you exactly noth-
ing about their default font size and its relationship to standard point sizes.
There is only one thing of which we can be certain: If you use points to
control sizes, you are kidding yourself.
1. The visually impaired might have difficulty reading the type. This is
not a problem in IE5/Mac, which allows users to resize type at their
discretion by using the included “text zoom” function. Netscape 6
offers similar functionality, and Opera 5 zooms the entire page at the
touch of a button. So in those browsers, you can use pixels without
causing accessibility problems for anyone. (But these, as we’ve
already explained, are not the most popular browsers.)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 279
3. If your style sheet calls up a scalable True Type font and if the user’s
operating system includes that font (and supports True Type), your
pixel-based style sheet will work just fine. But if the user’s system
does not include a scalable version of that font or a suitable substi-
tute or does not natively include True Type fonts (Linux for example),
type set in pixels can display jaggedly and may be illegible.
Accessibility problems aside, some designers quibble that pixels are bad
because they vary according to screen resolution. A 400 x 400 pixel square
fills most of the screen at 640 x 480, and very little of it at 1600 x 1200.
To which we reply, so what? A 100 pixel–tall CSS headline will be the same
height as a 100 pixel–tall GIF image. A 200 pixel–wide CSS div will be
equivalent to a 200 pixel–wide JPEG image.
If you intend to create print-like layouts on the web—or even liquid layouts
that depend on the relative sizing of elements—you have exactly one
choice: pixels. If you can get away with a looser type of design (as you can,
for instance, in a personal diary or an academic paper), so much the bet-
ter. Most of us have to size the elements in our layouts, and most of us
designers like it that way.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 280
The W3C later changed its recommendation, but not before Netscape had
followed it. We can’t fault Netscape for trying to support standards that
changed, but we can point out the absurdity of using absolute size key-
words if even one of your visitors is using Netscape 4 or IE3. And millions
of folks use those browsers.
The engineers who developed IE for Windows are not hacks and are not evil.
They were trying to do the right thing. Remember the seven <FONT SIZE>
settings supported by Netscape? Sure you do—<FONT SIZE=1>, <FONT
SIZE=4>, and so on. Rather deftly and cleverly, the IE developers mapped
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 281
the seven CSS keywords directly to the seven Netscape font sizes. In many
ways, it was a logical and even brilliant thing to do. (The IE/Windows devel-
opers were also the first group to attempt to support absolute font size key-
words. We should credit them for that before carping about the results.)
The problem, of course, is that, logically, the sizes do not map to the key-
words. In old-style browsers, <FONT SIZE=3> is the default or normal size
that the user has specified in her preferences. In Netscape’s extended HTML
markup, <FONT SIZE=3> is assumed unless you specify another size. Logi-
cally, a default size should map to the “medium” CSS keyword. Unfortu-
nately, in the IE/Windows scheme, <FONT SIZE=3> maps to “small” instead
of “medium” because small is the third size up from the bottom of the list.
If you think of the seven sizes the way the IE/Windows team did, your sizes
will be off on Mac users’ desktops. (You also will go nuts. It’s like trying to
drive a car where Park means Neutral.) If you think of them the way the
keywords actually read (small, medium, large) your display will be off in
Windows. You can trick the Mac browser into emulating Windows behav-
ior by specifying a <DOCTYPE> of HTML 4 Transitional and leaving off the
W3C URL. (For details, see http://www.alistapart.com/stories/ie5mac. But
this is forcing the browser to emulate nonstandard behavior, and that's not
good. Besides, it won't work in Netscape 4, Opera, or Konqueror.
So what can you do? Sadly, until your entire audeince uses browsers that
render absolute keywords, all you can do is ignore the W3C recommenda-
tions and use pixels in your style sheet. Or do not use sizes at all.
Relative keywords
Relative keywords are limited to two: smaller and larger. These in turn refer
to the size of the parent element. For example, consider the following
example, in which the <BODY> is 12px, and <BOLD> is “larger.”
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 282
<HTML>
<STYLE TYPE=”text/css”>
<!--
BODY {font: 12px verdana, arial, geneva;}
B {font-weight: bold; font-size: larger;}
-->
</STYLE>
Bold type would theoretically be 14px tall in this example because 14px is
one “notch” up from 12px. Like absolute size keywords, relative keywords
are ignored or bungled in some popular browsers (Explorer 3 ignores them,
as does Navigator 4 for the Mac). And even if they worked correctly, they
would be insufficient for the needs of most web designers and their clients.
Normal, larger, and smaller is not exactly a robust vocabulary for the needs
of professional designers.
So what can you do? You can use pixels in your style sheet; that’s what you
can do.
Length units
Length units sound smutty (those W3C folks should get out more…or
maybe it’s just us) and include the following:
When used with the font-size property, em and ex units refer to the font
size of the parent element.
<HTML>
<STYLE TYPE=”text/css”>
<!--
BODY {font: 12px verdana, arial, geneva, sans-serif;}
STRONG {font-weight: bold; font-size: 2em;}
-->
</STYLE>
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 283
In this example, <STRONG> would be 24px tall, or 2em (two times the font
size of the parent element, which is the <BODY> tag). In theory, a web
designer could create a layout using em or ex units, where all elements
were sized relative to each other. This would avoid the accessibility prob-
lems associated with pixels.
Unfortunately, the browsers make this impossible for the time being.
Netscape 4 ignores em and ex units. IE3 treats em units as pixels. Thus, 2em
is mistranslated as 2 pixels tall. It takes a village to raise a child, and it takes
at least 9 pixels to render a font. Length units are therefore not recom-
mended. What is recommended? Pixels or nothing.
Percentage units
Percentage units, like length units and relative keywords, refer to the size
of the parent element.
<HTML>
<STYLE TYPE=”text/css”>
<!--
BODY {font: 12px verdana, arial, geneva, sans-serif;}
STRONG {font-weight: bold; font-size: 200%;}
-->
</STYLE>
In this example, <STRONG> would be 24px tall, or 200% of the font size
of the parent element, which is the <BODY> tag. In theory (notice how we
keep saying “in theory"?), a web designer could create a layout using per-
centages and avoid the accessibility problems associated with pixels.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
14 0732 CH10 4/24/01 1:04 PM Page 284
Lest we forget, good old IE3 drops the ball by sizing percentages relative
to the user’s default font size rather than to the parent element. In Eng-
lish: If the web user has set her browser’s default to 10px, IE3 will display
<STRONG> at 20px and not the 24px you intended. If her browser defaults
to 16px, <STRONG> will be 32px. Too bad for you. Too bad for your visitor.
Looking Forward
Web designers will continue to be limited to using pixels in their style
sheets—despite the accessibility hazards associated with that practice—
until fully standards-compliant browsers exist and are widely used. The
approach might have its drawbacks, but failure to work correctly is not one
of them. As web designers, our job is to control the visitor’s visual experi-
ence to communicate. For the time being, the approach outlined here will
allow us to do exactly that. And soon enough, Lord (and browser compa-
nies) willing, the full power of CSS will be ours.
Can you take CSS further today? Quite possibly. It depends on the makeup
of your audience and your salesmanship with clients. As explained in Chap-
ter 13, A List Apart converted to an all-CSS layout in February 2001, and
many sites have since followed suit. For details and encouragement, see
http://www.alistapart.com/stories/99.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 285
chapter 11
WE’VE SAID ALL ALONG that the Web is not print. If you’ve harbored lingering
doubts on that score, this chapter should clear them up pronto. If this
chapter does not clear them up, try club soda and a semiabrasive cloth.
A primary reason the Web is not print is that websites don’t just sit there;
they do things—responding to clicks of the mouse, hovering motions, and
other user activities. JavaScript is behind much of that interactivity. In
JavaScript parlance, user actions such as mouse clicks are called events,
and you handle them via event handlers (“onClick,” for example). Similarly,
in JavaScript, the components of a web page, such as GIF images and form
buttons, are considered objects. Web pages are known as documents, and
the whole shebang is held together by a Document Object Model (DOM).
See, it’s not that hard, and you are learning already.
In this chapter you’ll find out what JavaScript is, where it came from, how
it brings websites to life, where to learn all about it, and how to begin using
it even before you learn all about it.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 286
286 HOW: The Joy of JavaScript: What Is This Thing Called JavaScript?
Even before JavaScript, sites could be somewhat interactive. After all, click-
ing a hyperlink loads a new page. The nonlinear nature of hypertext allows
the reader to decide where to go next—to structure her own voyage
through the site (and, indeed, through the Web).
That is an interactive process and a rather profound one. But it is not a ter-
ribly sophisticated form of interactivity. JavaScript puts the top hat and
tails on web interactivity.
But Perl is a server-side scripting language. That is, when a visitor clicks the
Send button, the web server itself must process the script. If the server goes
down or malfunctions, nothing will happen. Likewise, a web page not con-
nected to a web server—say, a web page on your hard drive—would not be
able to process such a script except in special circumstances (permanent
Net connection, full URL specified in the <FORM ACTION>, burning of
incense, wearing of magic ring).
While the script is being processed, the web server is momentarily tied up—
just as your Mac or PC gets tied up when you apply motion blur to an image
in Photoshop. Imagine constantly applying motion blur while receiving and
sending email, and you begin to see what web servers were up against. (This
is, of course a crude picture, and if you like it, we have other crude pictures
available at a nominal price.)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 287
As the Web’s population grew, more and more users were clicking more and
more Send buttons. More and more web servers were thus spending more
and more time processing scripts in between serving web pages. Mean-
while, the user’s browser sat there, doing nothing. A tool was needed to
transfer the process from the server to the client (the user’s computer).
Enter JavaScript.
Netscape called its new client-side scripting language LiveScript, but soon
changed the name to JavaScript to capitalize on the growing excitement
about Sun’s Java language. To this day, as a result of their similar names,
many beginning web designers (and users) confuse Java with JavaScript.
The relationship between the two is mainly one of marketing.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 288
288 HOW: The Joy of JavaScript: JavaScript, Unhh! What Is It Good For?
As all browsers finalize complete support for these standards, web design-
ers and developers are being empowered to create sophisticated interac-
tivity that works for everyone. Conversely, as browsers lag in their DOM and
ECMAScript support, web designers and developers are stuck programming
alternate versions of every site function, often going so far as to develop
alternate versions of the sites themselves.
Now that we’ve concluded our mini-history lesson and you’ve finished your
nap, let’s move on to the good stuff.
JAVASCRIPT, UNHH!
WHAT IS IT GOOD FOR?
Absolutely lots of things. Through this web-friendly programming lan-
guage, designers and developers can:
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 289
■ Rotate content and images depending on the time of day, the num-
ber of times the user has viewed a certain page, or simply at random.
■ “Remember” that a user has visited the site before, sparing her the
pain of reentering personal data or passwords. This is accomplished
by means of cookies (Netscape terminology for little bits of text that
reside on the end-user’s hard drive and can be recognized by
JavaScript on subsequent visits to the site).
Add the W3C DOM to what JavaScript does already and you can change
that phrase to “much, much, much more.”
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 290
290 HOW: The Joy of JavaScript: Sounds Great, but I’m an Artist
We know what you’re saying. “Sounds great, but I’m, like, an artist. Do I
really have to learn this stuff?”
Not at first and maybe never is an answer because many working web
designers get by for years doing nothing more than cutting and pasting
other people’s scripts. By the way, we’re not talking about stealing code.
Many developers freely offer their scripts in return for an acknowledge-
ment in the source code, and some don’t even ask for that (http://
javascripts.earthweb.com/).
Likewise, many other web designers get along by using WYSIWYG editors
such as Macromedia Dreamweaver and Adobe Golive and image editors
such as Macromedia Fireworks—programs that can create many standard
JavaScript functions for you. Some respected web designers have never
programmed a line of JavaScript code; they let Dreamweaver do it.
But most web designers do learn at least the basics of JavaScript because,
sooner or later, they run into problems they cannot solve without it. A prob-
lem like this can occur: A certain page does not display properly in
Netscape 4. The solution would be to create an alternate page that does
work in Netscape 4 and use JavaScript to send Netscape 4 users to that
alternate page. For nearly every design problem like this, there is a simple
JavaScript solution.
The other problem with cutting and pasting (or relying on a WYSIWYG edi-
tor) is that browsers change, web standards evolve, and cut-and-paste
scripts as well as WYSIWYG editors tend to lag behind.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 291
Hopefully, Microsoft, Netscape, and Opera will soon patch the holes in their
ECMAScript and DOM support, and Macromedia and Adobe will vastly
improve their support for these standards in Dreamweaver and Golive,
respectively. If both things happen, you might be able to spend the rest of
your life banging out advanced JavaScript functions with no clue as to
what you are doing or why it works.
But if you intend to plunge into full-time web design or if you simply want
to master the craft, you will want to learn JavaScript. So let us tell you how
you can do that, and then we’ll move on to examine how JavaScript helps
web designers solve typical problems that arise in the development of any
professional site.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 292
292 HOW: The Joy of JavaScript: JavaScript Basics for Web Designers
■ JavaScript for the World Wide Web: Visual Quickstart Guide, Third
Edition, by Tom Negrino and Dori Smith (Peachpit Press: 1999) pro-
vides a series of quick exercises, complete with screenshots, that
demystify JavaScript while explaining how to perform useful func-
tions and avoid common mistakes. From plug-in testing to creating
dynamic menus or from controlling frames to baking your first
“cookie,” pretty much everything you need to know can be found
here. The scripts also are freely available at the authors’
www.javascriptworld.com site.
Speaking of free online resources, you also can learn much about
JavaScript by studying Thau’s JavaScript tutorial at Webmonkey (http://
hotwired.lycos.com/webmonkey/javascript/tutorials/tutorial1.html). Give
yourself at least two days to go through all the exercises in this five-part
tutorial. The JavaScript School at www.w3schools.com/js/ is another great
place to learn. Classic and recent JavaScript/DOM articles may be found at
http://www.javascript.about.com/.
We highly recommend that you buy these books and study these free online
tutorials. We also recommend that you take it slow, breathe deeply, and
avoid freaking yourself out over this stuff.
Don’t Panic!
As a web designer, you will not normally be expected to do advanced
JavaScript and DOM programming. Instead, your knowledge of what
JavaScript is and what it can be used for will enable you to work more
closely with team members to create engaging websites.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 293
You should be able to create rollovers (image swaps) that help your visitors
experience the site as a responsive, interactive entity. (Yes, by hand.)
You should know how to open new browser windows (when doing so serves
a purpose), use browser detection to solve compatibility problems, and
enhance your site’s navigation through JavaScript’s ability to manipulate
simple HTML <FORM> elements.
Indeed, though we recommend learning all you can (and putting that
knowledge to use with taste and restraint), too much knowledge can some-
times lead to too much inappropriate JavaScript: scrolling text that moves
so quickly no one can read it, full-screen pop-up windows containing
rigidly designed 800 x 600 sites that look ludicrous on large monitors, or
complex, dynamic menus on general audience sites or on sites whose lack
of in-depth content is made pitifully obvious when these complex menus
end up pointing to single-paragraph pages.
While other jazz musicians blew fast and frantic, Miles Davis played very
few notes. The way he played them, when he played them, and the many
times he did not play at all, all combined to create a timeless creative
legacy. This is our highfalutin’ way of reminding you that less is more, a lit-
tle goes a long way, and slow bakin’ makes good eatin’.
So let’s look at some of these simple tasks and simple scripts. And let’s
see how ordinary web designers with no programming experience use basic
JavaScript techniques to solve everyday design and communication
problems.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 294
Solution: The JavaScript text rollover lets you brand even HTML links (see
Figure 11.1).
Figure 11.1
The status bar text
rollover in action at the
personal site of Derek
Powazek. Placing the
mouse over DESIGN FOR
COMMUNITY in the menu
bar causes the phrase
[DESIGN FOR COMMU-
NITY] to appear in the
status bar at the bottom
left of the browser. By
mastering the basic text
rollover, even beginners
can emulate at least one
Powazek design trick
(www.powazek.com).
Visit a typical site, and hold your mouse cursor over a link. You usually see
something like this:
http://www.fashionmaven.com/fashions/men/index.html
Not terribly interesting, not very informative for the average citizen, and
it certainly won’t help your brand-happy client. How much better would it
be if the visitor saw a message like this?
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 295
Many visitors might find this message far more useful than a bare-naked
URL. And your client would certainly dig it. Fortunately, it is easy to accom-
modate these visitors and your client with JavaScript. Text rollovers are one
of the easiest effects you can possibly create.
A visitor dragging her mouse over such a link will see the page’s URL and
nothing more:
http://www.fashionmaven.com/fashions/men/index.html
Let’s give the visitor something more informative than the page’s URL.
Many event handlers are built into JavaScript, but these are the two that
will help us right now. Let’s take the link just listed and make it more illu-
minating using JavaScript’s onMouseOver event handler:
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 296
We’ve used the onMouseOver event handler to tell the browser that some-
thing is supposed to happen when the visitor’s mouse hovers over this link.
The event handler is followed by the equal sign in the same way that links
and other standard bits of HTML use the equal sign.
Notice that the status bar message text ‘FASHION MAVEN fashions for
men.’ is enclosed within single quotation marks. This is because the
JavaScript itself is enclosed within double quotation marks. If the text also
used double quotation marks, the browser would not know how to distin-
guish the quoted JavaScript from the quoted text.
Observe also that both the description and the phrase return true end in a
semicolon. This is basic JavaScript syntax, so get used to it. There are more
semicolons in JavaScript than in all Charles Dickens’s novels combined.
Technically, the semicolon is not required when a JavaScript statement
ends the line. So,
<script type=”text/javascript”>
function rollover() {
window.status = “some thing” // no semicolon
}
</script>
But if you are placing two or more statements on a single line, as you would
inside an event handler attribute, you must separate the statements by
semicolons.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 297
Finally, note that return true is used at the end to handle the event. It tells
the browser to follow the HTML link. Return false would tell the browser
not to follow the link, which can be useful when you don’t want to load a
new page.
Status Quo
So far, so good—now let’s make our little example even more exciting.
(Well, as exciting as this kind of stuff gets.) Let’s craft a message that shows
up in the status bar when the visitor stops hovering over the link:
We’ve used exactly the same syntax to replace the onMouseOver message
with a default status bar message. When the user places the mouse pointer
over the link, he’ll read “FASHION MAVEN fashions for men.” When he
releases the mouse, our insistent client will replace that link-specific brand
message with a general one: “Welcome to FASHION MAVEN.” This general
message will remain in the visitor’s status bar until he moves the mouse
over a new link. If we had not done this, “FASHION MAVEN fashions for
men” would have been “stuck” in the status bar window even after the vis-
itor removed his mouse from that link.
None of what we’ve just shown you requires any custom scripting or prepa-
ration in the <HEAD> of the HTML document. The onMouseOver and
onMouseOut event handlers are as old as the hills, and any JavaScript-
capable browser will handle this code natively. (As we’ll see later, other
JavaScript techniques require a script before the function itself.)
Well, this is fine for a single link, but coding identical onMouseOut mes-
sages for a dozen links seems like a lot of work, doesn’t it? There ought to
be a shortcut! And fortunately, there is. (Programmers are always creating
shortcuts.)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 298
In the <BODY> tag of our HTML document, we can add this line of code:
For the sake of simplicity, we’ve left out the rest of the markup you might
normally include in the <BODY> tag, such as the default background color,
text color, and so on. Of course, if you’re following W3C recommendations
and using CSS to handle your site’s stylistic elements, then your <BODY>
tag can be as simple as <BODY> with no extra junk inside it.
But wait, there’s more! Because the onLoad event handler in our <BODY>
tag is telling the browser to proclaim “Welcome to FASHION MAVEN.” by
default, we can simplify our JavaScript link as follows:
What changed? Look closely. We’ve removed the redundant text “Welcome
to FASHION MAVEN” and replaced it with Folger’s Crystals. Just kidding.
Actually, we’ve replaced it with an empty pair of single quotations, which
tell the browser to revert to the default text specified by the onLoad event
handler (“Welcome to FASHION MAVEN”), We no longer have to type “Wel-
come to FASHION MAVEN.” in the JavaScript text link itself.
That may not seem like much of an achievement. That’s because it’s not
much of an achievement. But if there are a dozen links on this page, all
requiring JavaScript text messages, we’ve saved ourselves the trouble of
typing the same onMouseOut text 12 times. We’ve also saved the viewer
the trouble of downloading those few kilobytes of redundant text.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 299
Notice that it is possible to create dynamic web effects in web pages that
live on your desktop—without requiring a web server. Hooray for
JavaScript!
A Cautionary Note
Like everything you can do on the Web, modifying the default status bar
message involves trade-offs and thus requires thought. Browsers use
defaultStatus to communicate with users, letting them know if they’ve
connected or not, informing them when an object is being downloaded,
and letting the geeks in the house keep track of the actual URLs to which
your links point. Modifying defaultStatus can enhance site branding and
please your client, but it might upset some users, so don’t use JavaScript
in this way unless the benefits outweigh the drawbacks.
When it works on a page you’ve created, you’ll begin to feel like a web
designer. If it doesn’t work, you’ll really begin to feel like a web designer.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 300
Notice that we don’t refer to our chef’s favorites; we refer to our chef\’s
favorites. The backslash character tells the browser to treat the quotation
mark as a quotation mark, not a string terminator (meaning, not the end
of a JavaScript statement). Forgotten backslashes have caused many a web
designer her share of sleepless nights.
For some reason, Macs seem especially forgiving of the missing semicolon
error. Many a Mac-based web designer has uploaded a web page (or an
entire site) and gone off to smoke reefer, little realizing that he has left a
trail of JavaScript syntax errors behind him. The moral, of course, is to
check your JavaScript syntax carefully, test on multiple platforms, and
avoid smoking reefer—especially that overpriced brown stuff they’re sell-
ing uptown.
You think we are making this up, but you haven’t read our email and
haven’t spent years watching flame wars erupt on web design mailing lists.
You think people will click links without worrying about or even noticing
these changes in the expected status bar message. Many people, of course,
won’t notice; many others will notice and not care; some will notice and
be pleased. But others will be displeased, and a few may even write letters
of complaint.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 301
These people are out there, and some of them might be among your clients’
favorite customers. Thus, your infinitesimal gain in branding could be off-
set by a commensurate loss of audience. Even this small a decision is worth
considering carefully.
It’s also worth mentioning that, with the rise of HTML’s <TITLE> attribute:
In IE4 (and higher), Netscape 6 (and higher), Opera 5, iCab, and Mozilla, the
<TITLE> attribute will cause a Windows-like Tool Tip or Mac OS Help bal-
loon to pop up when the user hovers over the link. (In Opera, the message
appears in the browser’s status bar, just like a JavaScript mouse-over text.)
This Tool Tip or Help balloon will contain the text you’ve written inside the
quotation marks following the word title and the equal sign. To avoid over-
whelming users with flying tool tips, there is usually a slight delay before
the Tool Tip appears. There is also no need to worry about escaped charac-
ters when writing <TITLE> attribute text:
<a href=”somelink.html” title=”It’s exciting not to worry about apostrophes, isn’t it? Gosh,
➥it’s really swell.”
Of course, if your <TITLE> text includes a double quote, the browser could
get confused:
Not only is this <TITLE> attribute method marginally easier to use than
JavaScript, it is also, in some ways, more logical. When a user has her eye
on a link (or a linked image), her eye does not wish to jump down to the
browser status bar. Her eye wants to say where it is. In IE4+ and Netscape
6, the <TITLE> attribute accommodates this natural behavior of the human
eye and mind because the Tool Tip or Help balloon pops up adjacent to the
link itself.
Still, we do not wish to discourage you from using status bar messages.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 302
They make a handy informational and branding tool, and they work in older
browsers (like Netscape 4) that don’t support the <TITLE> attribute.
Solution: The JavaScript image rollover (see Figures 11.2 and 11.3).
Figure 11.2
Kaliber 10000, “The
Designer’s Lunchbox,” is a
jewel of graphic and navi-
gational design with
numerous JavaScript tricks
up its virtual sleeve. Note
the “K10k back issues”
pull-down menu at the
upper right, the code for
which is described later in
this chapter. One of K10k’s
simpler (but very effec-
tive) techniques is using
the ever-popular image
rollover to replace static
icons with animated ones.
For instance…
Figure 11.3
…dragging your mouse
cursor over the Rants and
Raves button replaces the
static dog with a GIF ani-
mation of a pooping dog.
Hey, we said they were
brilliant web designers;
we didn’t say they were
mature (www.k10k.net).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 303
Let’s assume that after reading Chapter 9, “Visual Tools,” you opened Pho-
toshop and ImageReady, designed a web page comp, sliced it, and used
ImageReady to generate the JavaScript rollover. Now take those same
sliced images, open your HTML text editor of choice (Allaire Homesite,
Barebones BBEdit, or Optima-Systems PageSpinner), and, using the tech-
niques you learned in the books or online tutorials mentioned earlier in this
chapter, write yourself an image rollover by hand.
You can do it! It’s okay to prop the books open in front of you or to refer
back to Thau’s web pages. You’ll create links much like the text links we
showed in the previous example. You’ll also hand-code a preload, usually
in the <HEAD> of your document. A preload ensures that swapped images
will be downloaded to the user’s cache before the page displays. In that
way, those preloaded images are ready to leap into action the moment the
user drags her mouse over them.
Why are rollover effects so popular? We think it is because users are accus-
tomed to operating systems whose GUIs respond to their actions. Rollovers
emulate this behavior, and they indicate that an image is more than an
image—it is a dynamic trigger to an action the user can perform. Users dig
that stuff.
The following was adapted from a basic script at Project Cool. And that’s
okay. Project Cool wrote their script back in the late 1990s so web design-
ers would use it and learn from it. The future of Project Cool is doubtful
because the site’s creators left in late 1999, but this script and others like
it were still available online as of this writing (www.projectcool.com).
<script type=”text/javascript”>
<!-- Adapted from Projectcool.com
if (document.images){
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 304
The script begins by announcing the fact that it is a script and that its type
is text/javascript. Older browsers expected to see a <LANGUAGE> attrib-
ute with the name and, optionally, a version of the scripting language being
used (“Javascript1.2,” for instance), but this attribute has been deprecated
in favor of a more generic <MIME> type descriptor. Don’t worry if you don’t
understand what we just said; simply relax and type:
<script type=”text/javascript”>
Next, the Project Cool script sets a condition for running. Early versions of
JavaScript did not support image rollovers. The script wants to make sure
it is working with a browser that understands rollovers, so it tests the
browser’s receptivity to the images array object of the document model:
if (document.images)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 305
The script could have accomplished the same thing by detecting for
browsers and platforms (a technique known as browser sniffing). For
instance, it could have checked for the presence of Netscape 2 and Inter-
net Explorer 3, two browsers that did not support the images array of the
document model (and hence would not be able to process this script). But
the code to check for these browsers is somewhat long compared to a sim-
ple line such as
if (document.images)
Besides, some versions of IE3 did understand image rollovers. Rather than
get tangled in browser versions, it is easier, more elegant, and more reli-
able to test for an understanding of the document images object. If the
browser does not understand (document.images), the script will be skipped.
If the required conditions are met, the script runs.
The script next declares two image conditions (Over or Out) and preloads
the required images (mb3_on-01-01.gif, mb3_off-01-01.gif, mb3_on-02-
01.gif, and mb3_off-02-01.gif):
if (document.images){
mainover = new Image; mainout = new Image;
mainover.src = “/images/menubar_over_1.gif”;
mainout.src = “/images/menubar_out_1.gif”;
storiesover = new Image; storiesout = new Image;
storiesover.src = “/images/menubar_over_2.gif”;
storiesout.src = “/images/menubar_out_2.gif”;
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 306
As we said, all of this takes place in the <HEAD> of the HTML document,
though it could just as easily live in an external JavaScript document. Like
an external style sheet as described in Chapter 10, “Style Sheets for Design-
ers” external JavaScript documents can live anywhere on the web server
and are referenced via links in the <HEAD> of each HTML page:
For more on external JavaScripts, see “Going Global with JavaScript,” later
in this chapter.
All that remains is to call up these functions in the <BODY> of the HTML
document itself.
This code should look somewhat familiar to you because it is fairly similar
to the dreaded text rollover.
Once again, here is a standard HTML link followed by two event handlers:
one for onMouseOver, the other for onMouseOut. But now, instead of
invoking a status bar message, our MouseOver and MouseOut states call
upon the swapem function declared earlier in the document. The
onMouseOver event handler declares two variables for the swapem func-
tion: a named object (in this case, main) and an appropriate image state
(mainover)—over, because this is the “MouseOver” state for the image
object. The onMouseOut event handler also declares two variables for the
swapem function: a named object (main) and an appropriate image state
(mainout)—out, because this is the “MouseOut” state for the image object.
Semicolons follow the naming of the variables and the required return true
declaration.
The image <IMG> tag that follows gives the source image a name (main),
allowing the swapem function to recognize the image as the object that is
supposed to be swapped. The remaining <SRC>, <WIDTH>, <HEIGHT>, and
<BORDER> attributes should be familiar to you from the HTML chapter. The
<ALT> and <TITLE> attributes are included so that the menu item will
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 307
remain accessible to those who surf with images turned off or who are
using nongraphical browsers such as Lynx. The link to /main.html will work
even if JavaScript has been turned off in the user preferences (or the
browser does not support JavaScript).
The code and the effect on the web page are much simpler than the
descriptive text you’ve just waded through.
You might ask, can JavaScript text rollovers be added to an image roll-
over like the one just described? The answer is yes, and it can be done very
easily:
<a href =”/main.html” onMouseOver=”swapem(main, mainover); window.status=’Visit the
➥main page.’; return true;” onMouseOut=”swapem(main, mainout); window.status=’’;
➥return true;”><img name=”main” src=”/images/menubar_out_1.gif” width=”200”
➥height=”25” border=”0” alt=”Visit the main page.” title=”Visit the main page.”></a>
Opening new windows via JavaScript is a simple task, though it’s some-
what controversial. Some web users feel that everything should happen in
their existing browser window. These folks hate pop-up windows, remote
controls, and everything else that can happen outside the safe, familiar
world of their existing browser window.
What does this mean? It means that pop-up windows, remotes, and other
such stunts should never be created lightly or purposelessly. (Why offend
visitors if you can avoid it?)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 308
Figure 11.4
JavaScript pop-up win-
dows annoy some web
users but can be extreme-
ly functional. At TV
Guide’s site, the main
page offers a compressed
listing of all available
cable channels. Clicking
any program triggers a
pop-up window that
offers detailed informa-
tion about the selected
show. Here, for instance,
we can read about Dick
Shawn groping for laughs
as a drunken genie in The
Wizard of Baghdad. The
point is that JavaScript
allows the user to select
exactly the level of
detail needed
(www.tvguide.com).
<html>
<head>
<title>Welcome to Porkchops.com!</title>
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 309
<script type=”text/javascript”>
<!--
function awindow(url) {
return window.open(url, “thewindow”, “toolbar=no,width=350,height=400,status=
➥no,scrollbars=yes,resize=no,menubar=no”);
}
// -->
</script>
</head>
When the event is triggered by the user’s action (clicking the link), the
named window.open function will be performed, and the appropriate HTML
page will appear in a 350 x 400 pop-up window with no status bar or menu
bar. The return false will prevent the browser from following the URL spec-
ified in the <HREF>, for backward compatibility.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 310
Can we use graphics instead of HTML text to perform these functions? Oh,
yeah! In the original HTML document, we can use a fancy-pants GIF image
we’ll call openwindow.gif:
And in the pop-up window we can use the dapper and elegant closeme.gif:
<a href=”#” onclick=”window.close(); return false”>)”><img alt=”Close this window.”
➥src=”closeme.gif” height=”25” width=”50”>
<script type=”text/javascript”>
<!--
function load_page(which_form)
{
self.location.href=which_form.modules.options[which_form.modules.selectedIndex].value;}
//-->
</script>
Now, in the <BODY> of your HTML document, create a standard HTML pull-
down form element and use the onChange event handler to trigger new
pages in response to user actions:
<form name=”hc”>
<select name=”modules” onChange=”load_page(this.form)” size=”1”>
<option value=””>Pick a Project!
<option value=”a.html”>A List
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 311
This script will automatically change pages as soon as the user highlights
any item in the list. If you prefer, you can use a button or other mechanism
to actually initiate the action. You can also easily add inline CSS to add
some style to the whole sorry affair:
The resulting mega-menu will look nice and take up very little space on the
page (see Figure 11.5). Compared with an endless list of standard HTML
links, the advantages of JavaScript-based navigation become obvious. To
compensate for non-JavaScript-capable browsers, you should include a
standard HTML menu somewhere on the page, but it need not be a mess if
you consolidate these HTML links using subpages:
<a href=”subpage_a-g.html”>A-G</a>
<a href=”subpage_h-n.html”>L-N</a>
etc.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 312
Figure 11.5
Add JavaScript to a stan-
dard HTML <FORM>
element, throw in a dash
of CSS for style, and you
have a tasty alternative to
the traditional navigation
menu. Instead of the mess
of links the client may
have demanded, you have
a clean, intuitive interface
requiring very little
space on the page
(www.happycog.com).
BROWSER COMPENSATION
Problem: You want to use particular technology—say, CSS—without
causing old browsers to fail.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 313
Figure 11.6
This is a splash page for a
special issue of A List
Apart. Using CSS rather
than traditional HTML
tables and image slices
simplified the design and
production, reduced the
bandwidth required, and
ensured that the photo’s
color would remain con-
sistent. But this page did
not work in old, buggy
browsers. JavaScript
browser detection saved
the day (http://
www.alistapart.com/
stories/decline/).
We also decided to use CSS to lay out the page, instead of relying on the
techniques described in Chapter 10. We did this for several reasons. For one
thing, it’s leaner. Instead of an HTML table filled with dozens of image
slices, it’s three simple images, one tiny rollover image, and a few lines of
standards-friendly code:
<style type=”text/css”>
<!--
BODY {margin: 0; background-color: #930; background-image: url(/stories/decline/
➥alatop.gif); background-repeat: no-repeat; background-attachment: scroll; background
➥-position: top left;}
A:link, A:visited, A:active { text-decoration: none; font-weight: bold; color: #f90; }
A:hover { color: #cf0; text-decoration: underline; }
#grief {position: absolute; left: 115px; top: 50px; background-image: url(/stories/decline/
➥decline.jpg); background-repeat: no-repeat; background-attachment: scroll; background-
➥position: top left; border: 2px solid black; height: 400px; width: 550px;}
.special {position: relative; left: 425px; top: 365px;}
-->
</style>
CSS enabled us to create a page that looked and worked better than tra-
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 314
Our referrer logs told us that 10% of our audience was using Netscape 4.
How could we offer our splash page to 90% of the audience without offer-
ing ugliness (and possible browser instability) to the other 10%?
This script defined Netscape 4 to keep an eye out for it. (We didn’t worry
about the earlier browsers because no one uses them to visit ALA.) When
a Netscape 4 user hit the splash page, he was redirected to an alternate
page via a second simple script:
<script type=”text/javascript”>
<!--
if (br == “n4”) {
window.location=”/stories/decline/main.html”
}
//-->
</script>
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 315
As you can see, this script checked for a condition (browser = Netscape 4).
If that condition was met, JavaScript’s built-in window.location object
directed Netscape 4 users to main.html, the issue’s table of contents page.
The rest of the audience got to main.html by clicking the link on the splash
page. Netscape 4 users missed the splash page but they didn’t miss a drop
of content, and they didn’t realize they were missing anything. In this way
their needs were accommodated without disturbing them or any other vis-
itor to the site.
There is a way around that—it involves frames—but it’s a tired, messy hack,
and we don’t recommend it. If you insist on seeing how it works, visit Happy
Cog (http://www.happycog.com/), where we combine browser detection
and redirects with frames. Hopefully, by the time you read this, we will have
redesigned Happy Cog, and you won’t be able to see what we’re talking
about anyway. Never mind.
Browser detection is not always as simple as what we’ve just shown. Given
that browsers can function differently on different platforms—and because
incremental upgrades can also function differently (the 4.5 version might
choke on code the 4.6 version handles with ease)—browser detection can
get very specific and painfully complex. By a strange coincidence, we have
more to say about that very thing.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 316
Did someone say “complex browser and platform detection?” Oh, joy. An
example of that very thing follows. Specifically, it is one of Juxt Interac-
tive’s (see Figure 11.7) browser detection scripts of late 2000, written, in
part, to compensate for the fact that Juxt uses the Flash plug-in exten-
sively, and IE4.5/Mac (and earlier) did not recognize JavaScript’s plug-in
detection method—though the browser was otherwise JavaScript-capable.
Figure 11.7
The gifted designers and
programmers at Juxt
Interactive rely heavily on
the Macromedia Flash
plug-in. Juxt must be
certain its visitors have
the plug-in installed
before throwing heaps
of Flash content their way.
JavaScript plug-in detec-
tion is the answer, but
plug-in detection fails in
some browsers. Juxt’s
developers tackled this
problem by writing the
mother of all plug-in,
browser, and platform
detection scripts
(www.juxtinteractive.com).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 317
At first glance, the river of code you’re about to drown in looks like one
advanced function after another. In truth it is just a few functions, repeated
over and over again so that every browser version, on every possible plat-
form, can be recognized and accounted for.
The first code torrent that follows lives in a global JavaScript file called
sniffer.js. We’ll discuss global JavaScript files in a later section, “Going
Global with JavaScript,” (just as soon as we get through this section).
//////////////////////////////////////////////////////
// source: juxtinteractive.com
// description: Flash 3, 4 AND 5 Detection
// Author: [email protected]
// credits: netscape communications (client sniff)
// Permission granted to reuse and distribute
// Last Modified: 10-03-00
//////////////////////////////////////////////////////
/////////////////////////////////////////
// Convert userAgent string to Lowercase
/////////////////////////////////////////
var agt=navigator.userAgent.toLowerCase();
///////////////////
// Browser Version
///////////////////
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 318
/////////////////////////////////////
// Detect IE 4.5 on the mac
// Mucho Problemos with this browser
/////////////////////////////////////
//////////////////////////////////////////
// Flash 3, 4 AND 5 Detection
// Last Modified: 10-03-00
// NOT checking for enabledPlugin (buggy)
//////////////////////////////////////////
var is_flash5 = 0;
var is_flash4 = 0;
var is_flash3 = 0;
if (navigator.plugins[“Shockwave Flash”]) {
var plugin_version = 0;
var plugin_description = navigator.plugins[“Shockwave Flash”].description.split(“ “);
for (var i = 0; i < plugin_description.length; ++i) { if (isNaN(parseInt(plugin_
➥description[i])))
continue;
plugin_version = plugin_description[i];
}
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 319
}
if (plugin_version >= 5) {
is_flash5 = 1;
}
if (plugin_version >= 4) {
is_flash4 = 1;
}
if (plugin_version >= 3) {
is_flash3 = 1;
}
if (is_ie && is_win32) { // Check IE on windows for flash 3, 4 AND 5 using VB Script
document.write(‘<SCRIPT LANGUAGE=”VBScript”\>\n’);
document.write(‘on error resume next\n’);
document.write(‘is_flash5 = (IsObject(CreateObject(“ShockwaveFlash.ShockwaveFlash
➥.5”)))\n’);
document.write(‘on error resume next\n’);
document.write(‘is_flash4 = (IsObject(CreateObject(“ShockwaveFlash.ShockwaveFlash.
➥4”)))\n’);
document.write(‘on error resume next\n’);
document.write(‘is_flash3 = (IsObject(CreateObject(“ShockwaveFlash.ShockwaveFlash.3”
➥)))\n’);
document.write(‘<’+’/SCRIPT> \n’);
}
And now the browser and plug-in detector, as used in the HTML document:
testSniffer.htm:
<html>
<head>
<title>testSniffer - juxtinteractive.com</title>
<meta HTTP-EQUIV=”Content-Type” CONTENT=”text/html; charset=iso-8859-1”>
<SCRIPT TYPE=”text/javascript” SRC=”sniffer.js”></SCRIPT>
</head>
<BODY BGCOLOR=”#000000” TOPMARGIN=”0” LEFTMARGIN=”10” MARGINWIDTH=”10”
➥MARGINHEIGHT=”0” LINK=”#CCCC33” VLINK=”#CCCC33” ALINK=”#FFFFFF”
➥TEXT=”#999900”>
<br>
<font FACE=”Verdana” size=”2”>
//////////////////////////////////////////////////////<br>
// source: juxtinteractive.com<br>
// description: Flash 3, 4 AND 5 Detection<br>
// Author: [email protected]<br>
// credits: netscape communications (client sniff)<br>
// Permission granted to reuse and distribute<br>
// Last Modified: 10-03-00<br>
//////////////////////////////////////////////////////<br>
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 320
<br>
<br>
<b>Function examples</b>
<br>
(the page uses the external JS file “sniffer.js”)
<br>
<br>
<br>
<script>
<!--
if (is_ie45mac) {
document.write(‘It seems you are using IE 4.5 on the mac — a extremly buggy browser,
➥you should consider upgrading to IE5 ASAP!\n’);
}
// Check Flash
if (is_flash5)
{ document.write(‘This browser can play FLASH 5 movies<br>\n’);
} if (is_flash4) { document.write(‘This browser can play FLASH 4 movies<br>\n’);} if
➥(is_flash3) { document.write(‘This browser can play FLASH 3 movies<br>\n’);} else {
document.write(‘This browser CANNOT play FLASH movies<br>\n’);}
//-->
</script>
<br>
<br>
</font>
</body>
</html>
Don’t be alarmed. This is the province of web developers, not web design-
ers. You would not be called upon to create JavaScript this detailed your-
self. (Besides, if you ever are, you can use Juxt’s script. Note the comment:
“Permission granted to reuse and distribute,” an act of grace and kindness
that is typical of the way web designers share information with their peers.)
There are things we dislike about these torrents of code besides the fact
that they are torrents of code. Mainly we’re unhappy with the nonstandard,
old-style “extended” HTML markup. This page would not validate. As HTML,
it is not the best role model. As JavaScript, it will do ‘til the next browser
upgrade comes along.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 321
Recognize that developers bash their brains out writing code like this
because browsers behave so inconsistently from version to version and
platform to platform. Be glad you’re going into web design and not web
development. Be kind to your programmers.
On the off-chance that you find this stuff enthralling or decide to switch
from design to development, you’ll find an abundance of good browser
detection information at http://webreference.com/tools/browser/
javascript.html and http://developer.netscape.com/viewsource/
krock_v5.html. Unfortunately, there is always the chance that by the time
you read this book, these pages will have moved or disappeared. If so, check
the Resources Department at http://www.webstandards.org/ for the latest
on browser detection.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 322
}
}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
tocover = newImage(“../omen2/coreover.gif”);
funover = newImage(“../omen2/funover.gif”);
alaover = newImage(“../omen2/alaover.gif”);
15over = newImage(“../omen2/15over.gif”);
stealover = newImage(“../omen2/stealover.gif”);
webover = newImage(“../omen2/webover.gif”);
miscover = newImage(“../omen2/miscover.gif”);
comingover = newImage(“../glareon.gif”);
preloadFlag = true;
}
}
// Get out of some idiot’s frame.
if (top != self) { top.location = self.location; }
// Popup window, 640 x 480
function open_window6(url) {
mywin = window.open(url,”win”,’toolbar=0,location=0,directories=0,status=0,menubar=0,
➥scrollbars=0,resizable=0,width=640,height=480’);
}
// Popup window, 500 x 500
function open_window(url) {
mywin = window.open(url,”win”,’toolbar=0,location=0,directories=0,status=0,menubar=0,
➥scrollbars=0,resizable=0,width=500,height=500’);
}
Pretty “light” after all that stuff from Juxt Interactive, eh? By now it should
be obvious what this stuff means, but we’ll spell it out anyway because we
really, truly love you.
The double slashes // precede comments. The comments help the author
remember what each function is for. The double slashes tell the browser to
ignore these comments and proceed to the next function.
The menu bar preload and subsequent changeImages function are just
another way of preloading images and creating image rollovers. The images
in this case are referenced via relative URLs (../glareon.gif), as explained in
Chapter 8. It would have been smarter to use absolute URLs, but we never
claimed to be all that bright.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 323
A third-party site might link to yours. Sometimes that third-party site uses
frames. Sometimes those frames are poorly constructed. Your site might
load inside their frames instead of in its own window. This line of JavaScript
prevents that from happening. In English, what it is saying is, “The HTML
document referenced by this script should fill the browser window. If it
does, swell. If it doesn’t, get rid of any extraneous frames and fill the
browser window with our page, not some other jerk’s.” Of course JavaScript
syntax is a bit more formal than that.
How do the HTML pages make use of this global JavaScript document? Just
as with global style sheets, they do it by referring to the .js file with a link:
The link appears inside the <HEAD> of each HTML document that requires
these scripts.
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”
“http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd”>
<html>
<head>
<link rel=”StyleSheet” href=”glam.css” type=”text/css” media=”screen”>
<script “”type=”text/javascript” src=”glam.js”></script>
<title>Jeffrey Zeldman Presents: My Glamorous Life</title>
</head>
<body onLoad=”preloadImages(); window.defaultStatus=’Jeffrey Zeldman Presents.
➥Entertainment, free graphics, and web design tips since 1995.’”>
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 324
Notice that the <BODY> tag includes these two onLoad functions:
preloadImages and window.defaultStatus. The first preloads the images as
referenced in glam.js. The second is our old friend, the default status bar
message—the first snippet of JavaScript we learned in this chapter. The two
are combined in one onLoad declaration and separated by a semicolon.
Simple.
LEARNING MORE
There is so much that JavaScript can do. This chapter barely hints at the
possibilities, and some methods used in this chapter could be out of date
by the time you read this book.
With the arrival of full support for ECMAScript and the DOM, the dynamic
possibilities for websites will expand exponentially. If you find, as some do,
that you take naturally to JavaScript and want to learn more about the
standardized version of JavaScript (ECMAScript) and the DOM:
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 325
Whether you tackle this advanced stuff now or crawl off to recover from
reading this chapter, be proud of yourself. You have faced your fears and
at least looked at the part of web design that most designers find confus-
ing and unintuitive. This is mainly because, compared to Photoshop and
<p> paragraph tags, JavaScript is confusing and unintuitive.
But with practice and experience, it will get easier. And when browsers do
a better job of complying with ECMAScript and the W3C DOM, it will get
easier still. The programming will not be easy, but you or your development
team will take comfort in the fact that you only have to code your site one
way to work in all browsers.
There is just a little more to learn before you can consider yourself a full-
fledged (or at least a fledgling) web designer. And by a strange coincidence,
what you still don’t know is covered in the very next chapter. Let’s go for
it, shall we?
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15 0732 CH11 4/24/01 11:23 AM Page 326
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 327
chapter 12
Beyond Text/Pictures
ON FIRST DISCOVERING THAT THE WEB IS NOT PRINT, many designers see only the
drawbacks: poor typographic resolution; a limited pool of installed user
fonts; bandwidth bugaboos; the need to compensate for browser, platform,
and hardware differences; and the awkwardness of trying to read a com-
puter screen in the bathroom.
The longer we work at it, the more we marvel at the Web’s ability to
provide universal access across seemingly unbridgeable gaps of technol-
ogy, nationality, economic and political systems, and physical ability or
disability.
As these barriers are crossed, the human spirit becomes less isolated, sus-
picion and intolerance begin to fade, and we learn to appreciate each
other’s differences instead of fearing them. These benefits will greatly
increase if the whole world gets to come along for the ride. They will greatly
diminish if too many humans get left behind.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 328
This, the substance of the vision of the founders of the Web, should be
enough. But there is more. In particular, there are the two profound differ-
ences between the Web and print that we’ll discuss in this chapter:
These two unique strengths of the Web have tremendous implications for
business and for art. Each has played a huge part in popularizing the
medium. Each brims with powerful potential that designers and develop-
ers have barely begun to tap. Each also has the potential to be abused.
Figure 12.1
Nicola Stumpo’s “Destroy
Everything” is a noncom-
mercial, nonnarrative
Flash site that eats
your screen alive.
Stumpo’s emotions are
probably inexpressible
in any medium outside
Macromedia Flash
(http://www.
abnormalbehaviorchild.
com/).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 329
Dynamic sites enable web users to locate information, store phone num-
bers in a shared contact database, buy holiday gifts without braving
crowded shopping centers, or view “adult” material without shame until
the baby-sitter barges in.
In this chapter, we will see how web agencies use server-side applications
to build sites that let users do things. We’ll look at where the web designer
fits in and how server-side applications help us manage immense content
sites or change text and appearance in response to user actions. We’ll also
discuss how small shops and freelancers can get in on the action even if
they don’t have casts of thousands and budgets of millions at their dis-
posal.
We’ll also see how technologies like Java can compensate for “missing
pieces” in our visitors’ browser setups or unleash full-fledged software pro-
grams that run right in the browser. And we’ll explore Java’s potential
beyond the desktop.
Figure 12.2
Here is a tranquil moment
outside the Eiffel Tower,
captured in all its
panoramic, Sensurround
glory courtesy of Apple’s
QuickTime VR—part of the
QuickTime plug-in. Print
cannot do this (http://
www.apple.com/).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 330
These technologies are not for every site, but, when appropriate, they can
enhance the web user’s experience tremendously. Used poorly, of course,
they lead to less satisfying experiences. We will explore all these tech-
nologies and consider what causes both kinds of experiences.
Knowing you as we do, we’ll start with the drier, more technical stuff
because if we saved it for later, you’d never read it.
But though they necessarily move from one realm to the other, most of the
dynamic technologies we’re about to discuss do the bulk of their work
either on the server or on the user’s desktop. Sometimes where they work
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 331
Some versatile technologies work both sides of the street. Java, for
instance, is frequently used on the client side, as a downloadable applet.
But it also performs many server-side jobs. You’ll hear developers and sys-
tems administrators talk about Java servlets, which are miniature Java
applications that run the Apache server’s mod_jserv component. Or you
might host a site on Jigsaw, a W3C server that’s written entirely in the Java
language.
You don’t really have to know any of this, as long as you get the general
idea. Now let’s move on to some specifics.
Server-Side Stuff
The days of slicing Photoshop comps and hand-coding every last HTML
page are not dead—they just smell bad.
One day soon, web designers will be fully liberated from these crude pro-
duction methods. It will happen when a core group of web standards is
completely supported in browsers, enabling us to separate style from con-
tent, presentation from structure, and design from data. It hasn’t happened
yet, as any working web designer can tell you. It’s coming soon, we tell you
now. We’ll talk more about it in Chapter 13, “Never Can Say Goodbye,” so
save your questions until then.
Meanwhile, we have interim solutions that let us create web pages with-
out, well, creating web pages. Under the principles of dynamic site con-
struction, we can establish the conditions for web pages instead of building
each page individually.
The process is simple: To begin with, web designers create visual templates,
while writers, editors, and marketers create content. (Hopefully the two
teams are talking to each other so that design and content work together.)
The content is stored and indexed in vast, humming “back-end” databases,
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 332
and the site is launched. When visitors request data, server-side middle-
ware applications fetch the appropriate content and pour it into the
designer’s template. The result: virtual pages that can be read, used, and
bookmarked but that do not exist as conventional, self-contained HTML
documents. Oh, oh, oh, it’s magic. Let’s descend to earth and see how it
works.
From these pages you learn that your old flame is the two-term governor
of a large Midwestern state, honorary dean of a prestigious university, has
had two charities, a hospital wing, and a Ben & Jerry’s flavor named after
her, and relaxes by participating in amateur kick-boxing tournaments.
The question, of course, is why did you ever break up with her? But for our
purposes, the question is, where do these Google results pages come from?
The Google results pages are created on the fly by software that sucks
query-related entries from a huge database, determines which links are
probably most relevant, and pours the results into a preexisting HTML
template.
Who made the software? Programmers. How does data get into the data-
base? More software: specifically, a search engine spider, so named
because it crawls around the Web indexing the content and location of
individual web pages. Where does the designer fit in? The designer creates
the template that the software uses to display the results. How does the
designer do that? Let’s see.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 333
Paradoxically, your job will not change that much from what we’ve
described earlier in this book. You are still creating the part of the site that
the visitor sees. You design it as you would any other web project. In a way,
it’s like designing a magazine’s table of contents page. You create the mas-
ter design; someone else designs the individual issues. It’s also like design-
ing corporate letterhead in that your responsibility ends when you deliver
the approved letterhead design. You don’t have to sit and type individual
business letters. Creating website templates is as normal as those more
familiar design processes. It’s after the image pieces and HTML templates
leave your desk that the voodoo kicks in.
It is the job of the middleware to process each request, fetch the appro-
priate document (or document fragment), and pour it into your template.
Common middleware applications include open source PHP, Allaire Cold
Fusion, and Microsoft Active Server Pages (ASP). MySQL is often found on
UNIX Apache servers, Microsoft SQL and ASP on Microsoft Windows NT
servers, and PHP can run on UNIX Apache or Windows/IIS.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 334
Ordinarily, the developers and project managers will provide you with
guidelines in a document that might be called the functional spec. They will
also discuss requirements with you in one or more personal meetings—
probably more. “We can’t have frames,” they might tell you or, “we must
have frames,” could be their direction. Don’t skip these meetings and don’t
rush to argue. Talk, listen, and learn.
The work process is but a variation on what you already do. You might take
the comp no further than Photoshop; the developers will try to emulate it
in, say, Cold Fusion, and show you the result. You might ask them to revise
their code to bring the design up to your spec; they might ask you to revisit
the design to accommodate limitations in the software or particular site
requirements.
You will also write the Cascading Style Sheet (CSS) that determines colors,
type sizes, margins, leading, and so on—same as always. You might find
that some of these middleware technologies are unfortunately ill-suited to
CSS, and you might need to do some HTML table work or have it done by
your friendly neighborhood web technician.
It is sad but not surprising that some of these dynamic tools (Cold Fusion
and the like) are more suited to old-style methods of web construction
(<FONT> tags, table-based layouts, and so on) than to the newer, stan-
dards-based methods (structural markup, design via CSS). After all, these
server-side tools arose in a market driven by browser quirks and proprietary
technologies, not by universally supported web standards. As browsers
improve their support for web standards and as web designers and devel-
opers begin using these standards instead of whining about them or plead-
ing ignorance, the dynamic tools will likely improve in this regard.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 335
Some web designers understand this as part of the discipline of the craft
and strive to bring beauty, elegance, and utility to their simple designs.
Others rebel and might be temperamentally unsuited to this type of work.
The Web needs both kinds of designers, and there is plenty of work for both.
The need for simplicity is another reason that it’s best to do as much of the
design work as possible in CSS (as long as the middleware doesn’t choke
on it). There is little sense in asking the server to generate deeply nested
table cells when you can achieve the same result with light, clean, struc-
tural markup and a single declaration in a global style sheet. By doing the
work in CSS, you save processor cycles and bandwidth; and when it comes
time to update the design, you can do it yourself in the style sheet instead
of pestering the programmers to change their scripts.
Naturally, you will have to test to make sure that the middleware your com-
pany has chosen can handle the CSS you’ve written. You’ll also have to test
the site in multiple browsers, as described in Chapter 7, “Riding the Project
Life Cycle.” During testing, you also will want to turn off CSS in your
browsers to make sure that the resulting pages work in non-CSS browsers
(or in CSS browsers whose users have turned off CSS in their preferences).
What do we mean by “make sure the pages work with CSS turned off?" We
mean that the pages work. We don’t mean that the pages look the same
with CSS and without it. Bad clients and stupid companies expect sites to
look exactly the same in AOL 1.0 and Netscape 6. That’s impossible with-
out quadrupling the budget, and it’s also pointless. Those who turn off CSS
or use older browsers aren’t hoping for a rich visual experience. If you stick
with basic structural markup and the simple CSS techniques described in
Chapter 10, “Style Sheets for Designers,” you should be fine.
DOING MORE
Coding in PHP or ASP rarely falls within the web designer’s job description,
but after working in the field for a while, many web designers are pleased
to discover that they have a knack for these simple programming environ-
ments. If you are one of them, this knack will not go unappreciated or make
you any less marketable.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 336
Figure 12.3
User-selectable
“Preferences” at Daniel
Bogan’s Waferbaby.
Choose a look, and the
site changes. Though
this might appear to be
the brainchild of a pro-
grammer, Bogan is actually
an animator-illustrator.
If he can do it, you can
do it (http://
www.waferbaby.com/).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 337
Figure 12.4
Matt Haughey’s Metafilter
community site, a web-
based application that
responds to its members’
needs. The dark blue panel
at right, introduced in
January 2001, keeps mem-
bers posted on changes in
the way the site functions
(http://www.metafilter.com/).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 338
Every site owner studies usage patterns and changes the site accordingly:
rotating content more frequently in the most visited sections; clarifying a
text label if one section of the site continually goes ignored; changing the
design to emphasize the least-visited section (or the most-visited); or
removing front page links to sections the public simply seems not to care
about (but keeping those sections alive to avoid link rot). The possibilities
are many.
Add dynamic, user-generated content to the mix, and the potential grows
even more interesting. On top of everything else, a psychological dynamic
begins to emerge. Is the community shaping the site, or is the site shaping
the community?
We don’t wish to imply that this whole thing goes on like a scientific exper-
iment or that the community in question serves as some kind of Petri dish
slide. As in any good community site, the owner/moderator is as involved
as any other member—but with the added ability to institute changes or
solicit suggested changes from the members. What is interesting is the way
that human dynamic behavior shapes and is shaped by basic web
dynamism. This is the power of a site that changes when you type on it.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 339
tomer feedback onsite in real time. Initially that seems beyond the reach
of the print designer-cum-web designer, but a few hours with a book on
PHP will change all that. The client gets his interactivity; the designer gets
a higher fee. Hopefully the consumer is also better served.
You might think all this is “too technical” for you. If you don’t believe you
will ever be able to wrap your head around server-side stuff, let us now
introduce you to Server Side Includes (SSI), the technology we mentioned
earlier in this chapter.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 340
Ugly, isn’t it? What if you could replace that entire chunk of repugnance
with one comely line of code? Namely:
To do it, let’s assume that the menu mess was part of a page called
index.html.
First, cut the menu mess out of index.html, paste it into a blank document,
and save that document as menu.inc. The .inc stands for “include,” though
technically speaking, includes can have any file extension—even .html. Your
systems administrator will tell you if includes require a particular or
unusual file extension.
Now in index.html, where the menu mess used to be, type that one line:
<!-- #include virtual=”/includes/menu.inc” -->
What do these tags mean? <!-- is a null tag containing a comment; <!--
#include --> is an include; virtual means that what follows in quotes is a
URL pointing to the file you wish to include; and --> closes the comment
and the include.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 341
Now simply use that line of code in every HTML document where you for-
merly had to cut and paste a heap of menu bar markup. Then upload your
HTML pages to the web server.
Some folks use a different file extension, such as .shtml or .shtm, if their
HTML file contains an include, and some servers require this. But if you can
stick to the .html file extension, you’ll avoid confusion and heartache down
the road.
Why confusion and heartache? We knew you were going to ask. For one
thing, imagine that your static .html pages have been bookmarked by vis-
itors and search engines. You then start changing your file extensions. All
of a sudden, your internal and external links are broken, your visitors are
confused, and the search engines that ranked you so highly are pointing to
nonexistent pages.
Of course, if you are sane, you will have made this phone call before chang-
ing all your HTML pages. Or you will have created a test HTML page,
uploaded it, and confirmed with your own eyes and mouse cursor that it
works.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 342
More than one SSI can be put to use on each page. You can replace the
“header,” the “footer,” or just about any piece of the puzzle. Using SSI, you
can replace all or nearly all of the dull, repetitive junk that holds web pages
together.
In turn, you can begin viewing HTML pages as content containers rather
than tortuous masterpieces of visually oriented markup—because content
containers are exactly what they are and were always intended to be. This
might not be the true separation of style from content, but it will do until
the real thing comes along.
SSI can do many things besides what we’ve outlined here. It can insert
appropriate text, HTML, or CSS based on the user’s browser. It can indicate
when the page was last updated (<!--#echo var=”LAST_MODIFIED” -->),
give the current date and time, and do other funky tricks.
And, as we’ve said, SSI is the low end. Imagine the possibilities if you begin
to work with more advanced server-side technologies.
Advantages of SSI
If a site changes—or perhaps we should say when a site changes (for
instance, when a new section must be added to the menu bar)—the power
of SSI is revealed. What was true for CSS is just as true for SSI: It is easier
to edit a single document (menu.inc) than it is to change hundreds or
thousands.
Hopefully, your client is not about to wantonly add new sections to the
menu or demand changes to the appearance of the menu after the site is
nearly built. In a perfect world, you have followed the suggestions in Chap-
ter 7, and the client has signed off (and paid part of your fee) at each stage
of completion. Therefore, the client has a vested interest in following
through with the plan he committed to and paid for and has no vested
interest in pulling last-minute changes to prove that he is the dominant
monkey in this rainforest.
But clients are clients, and change happens. SSI is a simple way of pro-
tecting yourself from hours of tedious replacement tasks.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 343
Disadvantages of SSI
Being a server-side technology, SSI eats up processing power from the
server. Every time a visitor hits a page containing a replaced SSI element,
the markup describing that element must be fetched from the server—like
a stick in the jaws of a panting mastiff.
If you are interested in server-side technologies, Jeff Veen’s The Art & Sci-
ence of Web Design (New Riders: 2001) discusses the subject in more
detail—and using better words and stuff. If you are uninterested in server-
side technologies to the point of anxiety, you’ll be happy to know that
we’ve finished discussing them.
Now let’s look at a technology you will frequently encounter in your career
but will never even contemplate programming yourself. Let’s talk about
Java. First of all, what the heck is it?
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 344
Reusable parts: that’s the idea. Sun’s programmers called these parts
objects. Sun didn’t invent this idea. Windows, Mac OS, and UNIX also reuse
code objects (Windows DLLs, anyone?). But in operating systems like Win-
dows, Mac OS, and UNIX, these reusable parts are immediately compiled
down to machine code. In Java, they are compiled to an intermediary for-
mat called “bytecode,” which is then interpreted by a Java Virtual Machine,
about which we’ll have more to say in just a moment.
Does this mean that you have to go out and buy a Java computer? No, it
simply means that Java programs are designed to run in Java-capable web
browsers (Netscape Navigator, Microsoft Internet Explorer), Java-capable
web-enabled devices, or special Java devices (such as Java-powered digi-
tal television-top boxes and remotes). They do this by means of Java Vir-
tual Machines, which we promise, really truly promise, we will describe in
just a moment.
Netscape was the first browser to support Java, and the point of the
Sun/Netscape partnership, as explained in Chapter 2, was to smash Win-
dows hegemony while getting Java onto as many platforms as possible, by
way of the browser. They succeeded at getting Java onto as many platforms
as possible. One out of two ain’t bad.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 345
Today most browsers and computer operating systems support Java. It gets
a bit more complicated when the browser or OS maker offers an “improved”
Java environment that Sun does not consider truly Java-compatible, but
we’ll get to that later. Java-capable browsers might run on any computing
platform (Windows, Mac OS, Linux, UNIX, or BeOS) as long as the browser
manufacturer supports that platform.
What makes all of this work? The Java Virtual Machine does. You might
think of the Virtual Machine as a streamlined computer operating system
(OS) running inside another computer OS—a Java computer running inside
Windows, for example. Or you might think of it as an interpreter, turning
spoken words into sign language for the hearing-impaired.
This Virtual Machine is sometimes included with the browser. Early versions
of Netscape included a Virtual Machine customized for each OS. This added
significantly to the download time but ensured that users would have the
then-new Java technology at their disposal.
In other cases, the Virtual Machine is built into the operating system. For
instance, Apple Macintosh OS9 includes “Mac OS Runtime for Java,” a Java
Virtual Machine whose sole purpose is to run Java programs on the Mac.
If you install IE5 Macintosh Edition on a pre-OS 9 Mac, you might get Java
errors because IE5/Mac expects a more recent Virtual Machine than the
one on your system. You can correct this problem by upgrading to OS9 or
by downloading a more recent version of Mac OS Runtime for Java from
http://developer.apple.com/java/classic.html. The program is free.
As you can see, the tantalizing potential of Java lies in its ability to work
in any operating system equipped with a Java Virtual machine—in other
words, theoretically at least, to run on any operating system. Practically
speaking, developers could build a word processor or a full-blown office
suite that runs in any Java-capable web browser and on any operating sys-
tem with a Virtual Machine. Of course, companies that make word proces-
sors and full-blown office suites might not like that idea. They might dislike
it so much that they would end up building their own web browser and tak-
ing over the market…not that we’re mentioning any names. There is, in fact,
a Java word processor (indeed, there is an entire Java office suite), and we
hear it works quite well.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 346
For instance, the IpixViewer plug-in, like Apple’s QuickTime VR (see the sec-
tion, "Turn on, Tune in, Plug-in" later in this chapter), enables visitors to
explore 360º panoramic views of any location that can be photographed.
It’s an extraordinary plug-in that does a remarkable job. But not many peo-
ple know about this plug-in, so not many have downloaded it. Therefore
you might feel that IpixViewer content cannot be used on your site. Not to
worry! The missing plug-in can be replaced by a Java applet and compiled
down to native, platform-specific code via the Java Virtual Machine:
If the HTML just listed looks odd to you, don’t sweat it. Your Java developer
will tell you what needs to be included on the page. Your job will be to
insert it, test it, and verify things such as height and width. (Is the result-
ing image in fact 210 pixels high? Does it look right? If not, change the
numbers and try again.) By the way, this same technique works for other
multimedia content, such as Flash. If the visitor lacks the Flash plug-in, a
Java applet can display the Flash content. Your developers will create the
applet and the complex code that determines whether or not the applet is
needed on each visitor’s system. Your job is simply to plug in some HTML
and test.
The other reason you need to know about Java is that in spite of its utopian
aims and utilitarian benefits, Java can sometimes be problematic. And as a
user-oriented web designer, you need to be aware of that.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 347
Java Woes
We can do this two ways: the short, brutal version or the long, boring, polit-
ically correct version.
Here’s the short, brutal version: From a user experience perspective, Java
often sucks. It can be as unstable as Norman Bates, drain resources like
Australians drain beer steins, and crash more frequently than a drunk dri-
ver’s Pinto.
For those who expect us to be fair, a long, carefully guarded, politically cor-
rect version follows. Feel free to skip it unless you are an attorney for Sun
Microsystems. In which case, we meant to say that Java is the best thing
since the Magna Carta.
Java can also sometimes drain the computer’s memory resources because
the user is essentially running a second operating system (Java) within his
existing OS. Not to mention the fact that the user is likely running a Java-
based application on an unstable web browser with all its memory-hog-
ging plug-ins, on top of any other software programs he might have
running in the background, and on top of a possibly unstable base operat-
ing system such as an older version of Mac OS, which can be wonderful but
not entirely stable.
The older the computer and the less memory at its disposal, the greater the
possibility of woe. Attention, Sun attorneys: We do not wish to overstate
these issues. All that is usually required is for the user to increase the
amount of memory allotted to the browser. Unfortunately, most web users
don’t realize this, so they don’t do it. Result: instability.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 348
The memory problem is not a Java problem per se; plug-ins like Flash and
Shockwave also work better if the user increases his browser’s memory par-
tition. Fortunately, during the installation process, Shockwave and Flash
alert users to the issue and offer to increase the browser’s memory auto-
matically if the user clicks the OK button. Java does not do this because
Java is typically preinstalled on the user’s machine when it arrives from the
factory.
Given that browser makers know most users are going to encounter Java
and are going to install and run plug-ins, why don’t they increase the
default memory partition of their browsers? In a word: competition. The
browser makers want to prove that their product uses less memory than
the competitor’s, so the browser installs itself with the lowest memory
allotment possible. It will operate under those conditions just fine as long
as users rarely venture beyond all-text websites. Most users do venture far
beyond, whether knowingly or not. So most users are practically guaran-
teed to encounter browser instability on sites that use Java or plug-ins or
even large, memory-draining background images.
Though Java tends to work well in Windows and UNIX, it’s a mixed bag in
Mac OS. Even on top-of-the-line G4 Macs with 1.5GB of installed RAM, T3
connections, and system buses capable of transferring over 1GB of data per
second, Java can sour.
These same Macs can rotate a 40MB Photoshop image faster than Google
can track down your ex-girlfriend. At speeds exceeding 5.5 gigaflops, they
can outperform Pentiums with twice the rated clock speed. But a stupid
“rippling water” Java applet on a personal site at Geocities can take down
these mighty Macs. Java is cross-platform but not always reliably so.
Attention, lawyers: We do not wish to overstate these issues.
Then of course, Java does not work at all in text-based browsers such as
Lynx, nor will it function in older browsers such as Internet Explorer 2. And
users of even the newest browsers might “turn off” Java in their prefer-
ences, thus defeating the development team’s efforts to use Java on the
site.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 349
This is not a Java problem per se. Users can also turn off JavaScript and
style sheets. They can refuse to install plug-ins, tell the browser to use
“their” background colors instead of yours, and in every other way imagi-
nable assert their right to see the Web as they wish to see it, thus turning
your beautiful site into a sea of sewage that strangely pleases them.
Java Joys
Despite hiccups, Java is cross-platform, and it does many things very well,
such as “stepping in” to replace missing plug-ins. For instance, as just
described, Flash files can be run as Java applications in Netscape Naviga-
tor if the user does not have the Flash plug-in. That is fairly remarkable. It
is handled by Flash itself. When saving the file, Flash generates code that
will call upon a built-in Java action if the plug-in is not detected in the
user’s browser.
Beyond all that, Java applets and Java servlets (smaller, more stable mini-
applications of Java that run on the server) can be used to help create
dynamic, database-driven websites. Java is ideally suited for sophisticated
tasks that take place under the hood. Because Java works cross-platform
and cross-browser (despite problems just mentioned), it might be prefer-
able to use Java for complex tasks, rather than relying on proprietary, plat-
form- and browser-specific technologies such as VBScript and ActiveX.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 350
The true power of Java is now being manifested beyond the browser.
Instead of web surfing, consumers are channel surfing via Java-powered
TV devices (www-us.semiconductors.com/news/content/file_501.html).
Java and Linux are now creating Internet appliances that require no
understanding of Java or Linux (http://www.linuxdevices.com/news/
NS5323294840.html). Java is finding its way into Personal Digital Assis-
tants (PDAs), cell phones, and even server-side technologies (http://
www.alistapart.com/stories/beyond/2.html). Keep your eye on Java as your
career unfolds, and use it judiciously as your sites evolve.
Let’s see how standard technologies and popular plug-ins push the Web
way beyond the cosmologies of print design. We’ll start with some web
standards you might or might not know about.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 351
environment to explore, and cruise around the spooky “3D world.” It is also
possible to zoom in and out and to interact with the 3D environment in
various ways. The Netscape Live3D VRML browser (built into Netscape 3)
was the first to support the VRML 1.0 standard.
Think video game. Think cheesy, super-low-grade video game. Laura Croft
it’s not. It’s more like Pacman 3D. Think wireframe and black backgrounds.
Besides being fairly crude, VRML is not a technology that lends itself to
accessible alternatives. A GIF image might be described via <ALT> and
<TITLE> text for the benefit of web users with visual disabilities. But you
are either navigating a 3D environment, or you’re not. <ALT> text just
won’t cut it: “If you could see and if you could physically manipulate a
mouse cursor, you might enter a crude simulation of a living room and ‘pick
up’ an illustration representing a pencil.” Thanks for sharing.
Of course, VRML was never about “web users finding what they want,” and
you might feel we’ve just slapped a straw man. But have we?
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 352
Now that you know what VRML is, you probably don’t need to know much
more about it. If you’re curious, more information is available at The Web
Developer’s Virtual Library:
http://wdvl.internet.com/Authoring/VRML/
What’s up with these two new standards, and why do they matter?
Aside from the fact that three Internet heavies (Real, Apple, and Adobe) are
throwing their weight behind SMIL, why should you care about any of this?
Let’s see.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 353
In English: slap a QuickTime video on your site and search engines such as
Google or Altavista could care less. But add a carefully authored SMIL pres-
entation to your site, and speeches made by the characters in your video
could show up in Google and Altavista’s search results.
The commercial implications ain’t bad, either. A buyer searching for widg-
ets could find your client’s digitized promotional video on the subject.
Existing multimedia formats obviously do not offer these advantages.
Lest you think SMIL is a completely wacky new technology, it is, in fact,
simply a markup language that works with existing technologies like
QuickTime and Real digital video and audio. What SMIL does is bring the
traditional benefits of the Web (searching, finding, bookmarking) to non-
text content. That is profound.
1. With a single link, you can deliver audio to dialup users and video to
broadband users. None of that “click here for audio, click here for
video” junk.
Author! Author!
Among the currently available Web tools and plug-ins that support SMIL
are Apple QuickTime 4.1 (http://www.apple.com/quicktime/) and the
unfortunately named RealSlideshow authoring tool by the makers of
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 354
RealSystem’s support for SMIL has been solid since 1998. Given the num-
ber of RealPlayers out there, SMIL can already reach almost as many web
users as Flash does. Not that SMIL and Flash are enemies. SMIL is often
used to integrate Flash content into the QuickTime and RealPlayers, and
Flash 5 exports SMIL for use in RealSystem.
Like Flash vector graphics, SVG vector graphics can fill an entire screen with
artwork while using very little bandwidth. Also like Flash, SVG can be ani-
mated via scripting. You’ll find examples of this at Adobe’s SVG site, which
we’ll discuss in a moment (see Figures 12.5 and 12.6).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 355
Figure 12.5
The Battlebots logo in
SVG. At the user’s discre-
tion, the image can be
enlarged again and again.
Figure 12.6
Vector artwork maintains
quality at the highest
magnifications while keep-
ing bandwidth expenditure
at a minimum (http://
www.adobe.com/).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 356
If you export your client’s logo from Illustrator to Photoshop and embed it
on a web page as a GIF image, search engines will not index it because it
is not text. You can work around that limitation by adding <ALT> text to
your image tag, but not all search engines index all <ALT> text.
If you create that same logo in Flash, it can spin and whirl and glow, but
search engines will not index it because it is not text. Flash 5 has added
some accessibility features, allowing you, for instance, to include <ALT>
text for a Flash file, but this is global text, not image-specific text, and we
already talked about the limitations of <ALT> tags as a guarantor of search
engine placement.
Take that same Illustrator logo and export it as SVG, using Illustrator’s
built-in support for that web standard. The resulting logo looks great,
smells fresh, and it remains text. That means search engines can index it.
Your client’s logo no longer blushes like a maiden when the search engine
comes courting. From every page of the site, the text-based logo calls out
to the search engine, and the search engine rewards it with the Web’s
greatest mark of love: a high ranking.
To the eye, the logo is a logo; to the search engine, it is a word. If the word
“Widgets” appears at the top of every page of the site, that site will rank
high when users search for widgets. When the client cries, “Make the logo
bigger,” you can answer: “We’ve made it number one.” By contrast, under
the old methods, when a GIF image of the word “Widgets” appears at the
top of every page of the site, it is unlikely to seduce the search engines.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 357
Because the SVG-formatted Widgets logo is a word that looks like a logo,
users can also copy and paste it into a text document. It will lose its SVG
formatting when users do this, but your client’s name will remain intact.
Your client will like that. And who knows? A year from now, it might not
lose its formatting when pasted into a popular word processor, print lay-
out program, or email message.
In fact that is one of the promises of SVG for graphic designers: that we
will be able to use the same SVG image file in our print work and our web
work—from Illustrator to Quark to the website, as easy as drag and drop.
(Yes, you can also create SVG illustrations by hand-coding them—after all,
SVG is really XML—but we doubt many designers will want to do that. We
sure don’t.)
Will SVG replace Flash? Not likely and certainly not any time soon. Will SVG
evolve into a useful tool for creating scriptable vector graphics? We think
it will.
As of this writing, a newer Adobe SVG plug-in has greatly improved its sup-
port for non-Netscape browsers, though Internet Explorer support for Macs
is limited to nonscripted SVG only. In other words, IE/Mac users can
see SVG graphics on the Web but cannot see dynamic (animated) SVG
graphics.
Still, things are looking up for SVG. You might find it odd that it takes a
proprietary plug-in to support an open standard, but such is the state of
the Web. After the SVG standard is finalized, we suspect that browser mak-
ers will begin investigating ways to support it.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 358
Promises, Promises
While SMIL is well-supported via plug-ins, SVG is still a work in progress—
a promising work in progress, an exciting work in progress, but a work in
progress. It will be widely adopted when it is further along in development
and can be natively supported in browsers.
While SMIL is expanding and SVG is still taking shape, now would be a good
time to download Adobe’s SVG plug-in and explore SMIL presentations and
tutorials. Over the coming months, you will want to remain open-minded
about these emerging standards and keep your eye on their evolution.
Before we know it, they will likely be part of every web designer’s tool kit.
But in the meantime, you have a job to do. So let us turn our gaze to the
Web’s de facto multimedia “standards” (which are not, technically speak-
ing, web standards at all). Let’s consider the proprietary, often-maligned,
sometimes-adored, widely used plug-ins that already bring rich multime-
dia experiences to hundreds of thousands of sites and hundreds of millions
of web users.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 359
Figure 12.7
Sony Classical, a site that
Flash built. What it loses
in accessibility, it gains in
form and function.
Classical music greets
the visitor as the site
loads; as one piece of
music replaces another,
the company’s musical
offerings shift in the main
window as though one
were poring through
record bins (http://
www.sonyclassical.com/).
You can do some of this in
HTML and JavaScript but
not as smoothly or reliably.
For graphic designers, plug-ins are nothing new. If you want to create
strange blurs in Photoshop, you can buy and install Kai Krause’s KPT Filters
plug-ins. If you wish to work with preset masks in Photoshop, you’d pur-
chase Extensis Photoframe. Photoshop and Quark have sparked entire
industries devoted to creating such plug-ins. Plug-ins for web browsers
function exactly like plug-ins for Photoshop and Quark, except that
browser plug-ins are free. (Why are they free? How can they be free? We’ll
get to that.)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 360
Still other multimedia add-ons can work either way. Depending on how you
mark up your web page, Apple’s QuickTime plug-in can lurk in the shad-
ows, invisibly playing embedded video and audio files right in the browser
window (like a plug-in). It also can spawn an overly ornate steel-burnished
console player that lies atop the browser window like a misbegotten Cadil-
lac ornament (not like a plug-in).
To keep it simple and to annoy the overly precise among you, we will fol-
low the manufacturers’ lead (as well as convention) and refer to all of these
add-ons as “plug-ins,” whether they behave like true plug-ins or not.
In the beginning, God created the Heavens and the Earth. A little later, the
Web consisted of hyperlinked text. In the fullness of time, it became pos-
sible to include badly rendered images on web pages. This began to make
the medium more attractive to creative and commercial enterprises, and
there was soon a demand for sound, video, and other multimedia enhance-
ments on the Web. There was also a demand for really good Chinese food
in the American Midwest.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 361
How to answer the clamor for sound and video and other fancy stuff? The
engineers at Netscape were inventing what a web browser was supposed
to be as they went along. Eventually they hit upon the notion of plug-ins.
If it worked for Quark and Photoshop, it ought to work for them too.
At the time, the Web was hotter than Jennifer Lopez’s Academy Awards
dress, and Netscape’s browser was the thing that was making it hot. Here
was a marketing opportunity! Dozens of plug-ins soon flung themselves
into the market. When new browsers began muscling in on Netscape’s turf,
they followed Netscape’s lead and supported “Netscape plug-ins” simply to
compete.
And here we are, more than half a decade on and still plugging away. (There
is still no good Chinese food in the American Midwest, however.)
Want in-depth help with Flash, and penetrating insights into its nature?
Try Hillman’s book or Joshua Davis’s upcoming Flash to the Core (New Rid-
ers: 2001). We have our hands full as it is. Meantime, let’s assess a few
well-known plug-ins.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 362
When designing content that requires plug-ins, the first question to ask is,
which plug-ins? Which are most widely available? Which are likely to be
sitting in your visitor’s browser plug-in folder, just waiting for you to give
them something to play?
Seeing that you’re no better off than you were before, we’ve gone ahead
and created a short list of plug-ins we think you’ll run into during your
long and splendid web design career. Herewith, please review our never-
impartial assessment of the major multimedia plug-ins.
RealPlayer (www.real.com)
This popular plug-in/player delivers streaming video and audio, along with
support for Flash and the SMIL standard. RealPlayer is the most popular
streaming video format because it uses the least bandwidth and works on
all computing platforms (though it’s sometimes flaky on Macs).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 363
Tool tips
The free Real Producer software available at Real’s site is of sufficient qual-
ity for converting existing digital video to the Real format. An inexpensive
“Pro” version provides more options, enables you to create MP3 files, and
will help you create HTML files and stub files. Stub files are miniature text
files that trigger the streaming of Real files over conventional http net-
works. You also can easily create stub files yourself:
http://www.example.com/real/lopez_dress.rm
Close the document and save it as lopez_dress.ram. That’s your stub file,
Bubba. Upload it to your web server—for the sake of simplicity, we’ll assume
you’ve uploaded it to the same directory as the HTML file that references
it—and then conjure it up with a link like this:
Can you refer to it with an image instead? Of course. It’s just a link.
<a href=”lopez_dress.ram”><img src=”images/lopez_50x50.gif” height=”50” width=”50”
alt=”Actress Jennifer Lopez” title=”Watch Jennifer Lopez at the Academy Awards.
RealPlayer required.” Border=”0”></a>
You can also <EMBED> the file, thereby triggering the Real plug-in instead
of the Real console:
What does all that extra code mean? We’ll explain later.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 364
The point is to link to the stub file, not the actual Real-encoded file. The
stub file, being text, downloads almost instantly. If the user’s browser is
configured correctly, the stub file will launch the RealPlayer, which will
then begin preloading the actual video clip. Your visitors will soon see Jen-
nifer Lopez…and so will Ms. Lopez’s attorneys. Be certain you have per-
mission to publish the clip.
You can skip the need for stub files if your client or host purchases dedi-
cated Real servers—recommended if you plan to serve much video to many
visitors. For instance, on a site that constantly serves TV news feeds, cable
comedy clips, or streaming video trailers, investing in Real servers would
be a Real good idea.
Special indications
With the highest compression ratio (and consequently, the lowest quality),
Real is the fastest streaming format, making it the plug-in of choice for
news sites and others where quality is less important than a hardy consti-
tution and the ability to deliver like James Brown. With Real, you are
assured of supporting the largest number of users with the widest range of
connection speeds.
If video files are meant to viewed and then forgotten (like a TV experience),
Real is likely what you want. Conversely, if video files are meant to be
stored and treasured on the end-user’s hard drive, you would probably
choose QuickTime instead. This is, of course, merely our opinion.
QuickTime (www.apple.com/quicktime/)
A high-quality streaming video format, QuickTime also supports a wide
variety of streaming audio formats including the ever-popular MP3. It also
delivers QuickTime VR panoramas and animated sprites. QuickTime sup-
ports hyperlinks in video, and offers some support for Flash and SMIL. An
innovative multistreaming process serves appropriately sized material
according to the end-user’s connection speed, as described in Chapter 2.
Last time we checked, QuickTime was the second most popular streaming
format. It uses more bandwidth than RealPlayer but delivers smoother
video and audio. The QuickTime format is native to Apple Macintosh com-
puters but thoroughly supports Windows PCs.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 365
Tool tips
Delivering video over the Web should be impossible. The technology works
by means of drastic compression methods. Even the best of these methods
include visible artifacts. To minimize these artifacts and assure a better
quality image, choose subject matter that compresses well.
“Talking heads” compress well. Swish pans and mad action sequences do
not. This is because the compression works by seeking pixels that barely
change from frame to frame, choosing one of these pixels as a “master”
pixel, and repeating it from frame to frame in hopes of fooling your eye.
The more jerky camera movement in your mise-en-scene, the more obvi-
ous the software sleight-of-hand is. This is true not only for QuickTime but
for all digital video.
Figure 12.8
Writer Jim Heid’s personal
QuickTime VR panoramas
convey the rustic beauty
of his community (http://
www.heidsite.com).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 366
Figure 12.9
A virtual reality tour of
Khufu’s Pyramid lends
needed “gee-whiz” appeal
to an essentially educa-
tional enterprise (http://
www.pbs.org/).
Figure 12.10
A hauntingly frozen
moment in time (http://
www.heidsite.com/). Print
absolutely cannot do this,
nor do these screenshots
begin to convey the effect.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 367
Or a tranquil beach panorama could reveal the Jaws theme as the camera
reaches the sea.
Special indications
If you want high quality, you probably want QuickTime. If you want VR
Panoramas, you need QuickTime. Other panoramic plug-in formats are
available (some of them quite good—see iPix, mentioned previously), but
none are nearly as widely distributed as QuickTime. Later we’ll talk about
how some plug-ins managed to crawl to the top of the heap while other
good ones languished. It isn’t really all that fascinating a story, but gossip
is as good a reading motivation as any, and her attorneys have informed us
that we can’t keep referring to Jennifer Lopez’s dress.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 368
The WMP URL we’ve listed was accurate as this book went to press, but
contents might have settled during shipment. (Microsoft constantly
changes URLs at its site.)
Special indications
For some reason, WMF has apparently become the format of choice for the
streaming distribution of “adult” content, or so our informants tell us. We
just thought it was kind of interesting, that’s all. You try writing a chapter
about plug-ins, and see if your mind doesn’t start wandering where it
shouldn’t. We blame Jennifer Lopez’s dress.
Beatnik (http://www.beatnik.com/)
Musician Thomas Dolby’s Beatnik, though less widespread than the biggest
hitters, is an intriguing plug-in that comes bundled with most Netscape
distributions. Beatnik enhances MIDI (Musical Instrument Digital Interface)
playback, easily surpassing the quality of most PC add-on sound cards and
the Mac’s built-in MIDI voices. It also offers strangely wonderful features,
such as the ability to mix jam sessions on sites authored according to Beat-
nik’s specifications.
Such stuff is unlikely to be part of a site for your local church, synagogue,
or small business but might well add luster to the site for a recording artist.
Beatnik was used to enhance the PBS “Jazz” site (http://www.pbs.org/jazz/)
that accompanied Ken Burns’s historic jazz documentary series of 2001.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 369
Shockwave/Flash (www.macromedia.com,
www.macromedia.com/software/flash/)
Two plug-ins now bundled as one, Shockwave and Flash, are the biggest,
most-accepted, and possibly the most dynamic plug-ins on the market.
They are certainly the most controversial. Entire sites have been created in
these formats. Entire sermons have been written denouncing them.
For many, Flash is a religion; for many others, it is the first sign of the anti-
Christ. Flash artist Peter Balogh sums up the controversy in his witty essay,
“Sympathy for the Plug-in” at http://www.alistapart.com/stories/
sympathy/.
Figure 12.11
The “virtual piano” in the
Jazz Lounge at PBS.org,
created in Macromedia
Director, rendered unto
the Web in streaming
Shockwave format. Print
cannot do this (http://
www.pbs.org/jazz/).
Though they share a similar blow-you-away quality and though the man-
ufacturer now serves them like two peas in a pod, Shockwave and Flash are
quite different.
Shockwave
Shockwave is a sophisticated, proprietary format that can do anything a
CD-ROM can do. Full-fledged gaming environments; animated, hot-linked
city maps; endless labyrinths deep within simulated subterranean worlds:
If you can dream it up, it can be rendered in Shockwave. Essentially, Shock-
wave files are like self-contained software programs that launch in the
user’s browser.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 370
There is also the risk that Shockwave programs will exceed the user’s com-
puting capacity. Linux users, who take justifiable pride in cranking tremen-
dous computing juice out of old, cheap PCs, frequently hit a wall when
Shockwave comes to town. Even Mac and PC users sometimes find Shock-
wave too rich for their blood. None of this is the fault of the operating sys-
tems in question. We’re back to the problem we discussed with Java. When
it works, it’s magnificent; when it doesn’t, it ain’t.
Shockwave has largely escaped the fire and brimstone preached against its
younger cousin, Flash, because Shockwave files are fiendishly difficult to
create; therefore, gigantic Shockwave “intros” are not epidemic through-
out the Web. Hence the usability experts rarely scream about Shockwave.
But, oh brother, do they roar about Flash.
Flash
Flash is Shockwave’s lighter, less-bandwidth-intensive, easier-to-program
(but somewhat less powerful) cousin. Flash delivers animated graphics and
sound, and it is completely interactive. At this point in the history of the
Web, it is easier to create rich interactive presentations in Flash than by
trying to use the open standards of the Web (HTML/XHTML, CSS,
JavaScript, and the DOM). It’s more reliable, too, sadly enough.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 371
Flash files stream and can be highly compressed because Flash is built on
vector graphics. (As you know, vector graphics, like PostScript, are mathe-
matical in nature rather than pixel-based.) Thus it is somewhat ironic that
Flash has become known as a bloated format. This has to do with poor Flash
authoring, not with Flash. Flash presentations, even incredibly sophisti-
cated ones, can be very low in bandwidth—and generally ought to be.
Flash files are created in the Macromedia Flash authoring program. They
also can be authored with Adobe’s LiveMotion software, which premiered
in early 2000.
Cult take: Flash designers take as much pride in mastering the tool’s
absurdly poor interface as they do in exploring its programming depth and
complexity. Just as web designers who code by hand take pains to chuckle
mockingly at Dreamweaver and GoLive users—and hold FrontPage users
utterly beneath contempt—so the hardcore Flash jockeys shake their heads
in bewilderment at the very notion that anyone would even think of using
LiveMotion.
Our opinion: Flash and LiveMotion are both fine tools, each of which caters
to a different niche in the market. (There goes our cult status.)
Whichever authoring tool you use, you can do all the design work in the
program itself or create your vector graphics in Adobe Illustrator or Macro-
media Freehand and then export them to Flash (or LiveMotion). You also
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 372
might find yourself working with audio and video editing programs and 3D
design programs. If you think we’re going to cram this book with quick ‘n
easy tutorials on those sophisticated software programs, you are very high
and should lie down or consult a physician.
Look at great Flash sites. Look at poor Flash sites. Emulate the good; learn
from the bad.
Bad Flash sites are unresponsive, static, hard to navigate and understand,
communicate poorly (if at all), and waste the visitor’s bandwidth and time—
just like bad websites.
As with all such proclamations, there are always exceptions that succeed
in spite of being cryptic, initially confusing, or bandwidth-intensive. If you
are a genius with a deserved cult following, feel free to ignore the previ-
ous two paragraphs. If you’re not, respect your audience.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:24 AM Page 373
Figure 12.12
Those still perplexed by
the popularity of
Macromedia Flash need
look no further than
Monocrafts, Yugo
Nakamura’s multitiered
masterpiece.
Figure 12.13
Nakamura studied civil
engineering, architecture,
and landscape design
before focusing his crisply
uncanny intelligence on
issues of web art and
interface. These screen-
shots are from a previous
version of the site, which
still stands as a remark-
able achievement by any-
one’s measure but Jakob
Nielsen’s.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:25 AM Page 374
Figure 12.14
Reducing Monocrafts to a
series of printed screen-
shots is like trying to
explain a symphony by
playing a single note
(http://www.yugop.com/
ver2/).
These miserable things are called “intros” (as in introduction) to the site.
They are the spiritual descendants of David Siegel’s (www.dsiegel.com/)
“entrance tunnels,” meaning that while some of them can be beautiful
establishers of mood, tone, and identity, too many feel simply gratuitous.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:25 AM Page 375
Here is a true horror story. The author of this book was supposed to speak
at a web conference. He visited the conference site in hopes that it would
tell him where the event was being held. He knew it was in a hotel, but
which hotel, and where? Instead of providing that information, the con-
ference site linked to the third-party site of the hotel itself (strike one). Not
the most usable idea, but all right.
The hapless author clicked the hotel site link and discovered that he was
trapped inside the conference site’s frameset, an HTML error so basic he’d
forgotten such things could even happen. Strike two.
Inside that tiny frameset, the hotel site presented, not its name or address,
but a Flash intro (strike three), nor was this an optimized, bandwidth-
friendly intro built largely with vector graphics. No, what it actually was,
was something more akin to a QuickTime movie: a motion picture showing
the beauty of the hotel. Strike four. In spite of his fast connection, the
author had to wait several times while the overweight Flash file choked on
its own girth before streaming resumed. Strike five. There was no way to
skip this intro; it simply had to be endured. Strike six.
And that’s another reason that Flash gets a bad rap—because people who
don’t know what they’re doing often use it poorly. There are bad painters,
but no one criticizes paint. On the other hand, bad paintings aren’t shoved
in your face when you’re trying to find information online.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:25 AM Page 376
Clients might salivate over the prospect of giant animated logos, but
designers and web users are tired of this unimaginative use of Flash, and
the plug-in is best reserved for truly creative and artistic purposes. You’ll
find sites exemplifying that kind of creativity in Chapter 13.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:25 AM Page 377
If you do find yourself pressed into service in these areas, the work is not
hard. In agencies, you’ll typically find a workstation with a video machine
at one end and a Mac or PC at the other. Software like Adobe Premiere or
Apple iMovie is used to digitize the film. Third-party compression software
such as Terran Cleaner 5 (http://www.terran.com/) optimizes video for
streaming web delivery. None of this is difficult, but rarely will a web
designer be asked to do it. Your time is too valuable elsewhere.
Many web designers include Flash design in their skills repertoire; many
others do not. Developing exceptional Flash content is a specialization all
its own. Most web agencies keep a few designers on staff who excel at
Flash development, allowing the bulk of the design crew to focus on inter-
face and other design issues.
<p>
<!-- java applets -->
<applet name=”IpixViewer” code=”IpixViewer.class” archive=”IpixViewer.jar” height=”210”
width=”280”>
<param name=”URL” value=”zabptcaj.ipx”>
<param name=”Spin” value=”on”>
</applet>
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:25 AM Page 378
Notice the use of <!-- comment tags --> to help the web designer keep
track of what she is doing and why.
Notice that room has been made for the space used by the plug-in image
file (280 x 210 pixels). If the layout for this web page had been initially cre-
ated in Photoshop, the web designer would have left a 280 x 210 space in
the layout itself and then replaced it with HTML during the web-building
phase. In all probability, this page was never individually designed in Pho-
toshop but is simply one of many that share the same template.
Notice that a Java applet has been used to embed the file, as described in
this chapter’s section on Java. Visitors lacking the iPIX plug-in will be
treated to a Java simulation, rather than simply encounter an error mes-
sage about missing plug-ins.
But what happens to the visitor whose browser does not support either
plug-ins or Java? That is taken care of by the <noembed> tags. Let’s look
just at that section of the markup:
<!--For MSIE 2 -->
<noembed>
To view IPIX images you need to Upgrade your Browser. We recommend Version 3 or
above of either Netscape or MSIE.<br>
</noembed>
<!-- end java applets -->
</p>
The <noembed> tag basically says, “Listen up, old, dumb browser. What fol-
lows is for you.” In such a browser, the text beginning To view IPIXimages…
will be revealed. In other browsers (those that support Java or contain the
iPIX plug-in), the text message will be hidden.
The designers also could have put this text and markup inside the <applet>
element, like so:
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:25 AM Page 379
In most cases, though, Java is not pressed into service. After all, plug-in
manufacturers want their plug-ins to be downloaded, not synthesized by
a substitute technology. Typically, when a web user lacks a plug-in, she is
“automagically” directed to the appropriate plug-in page so she can down-
load it. In most cases, the magic is merely a matter of adding a <plug-
inspage> attribute to the HTML <OBJECT> or <EMBED> tag:
<embed src=”http://build.kubrick.org/sounds/the.shinning/midnight.the.stars.and.you.mp3”
autostart=”true” volume=”100” width=”2” height=”2” controls=”hidden”
pluginspage=”http://www.quicktime.apple.com”>
2. It also provides a web address where the latest version of the Quick-
Time plug-in can be downloaded. If the visitor did not have Quick-
Time installed on her system, the browser would display a dialog box
indicating that the plug-in was required and asking if she wished to
download it. Clicking Yes or Okay would load the appropriate Apple
plug-in page. The way the <EMBED> tag works, the browser does
most of the work of supporting the web user (and the web designer).
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:25 AM Page 380
Heck, while we’ve got this markup in front of us, let’s just go ahead and
explain what the rest of it means:
■ <AUTOSTART>. This tells the browser to begin playing the file instantly.
(The default value is on.)
■ <VOLUME>. This sets the loudness. (The default value is 100, or full
volume.)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:25 AM Page 381
Before we close this fascinating portion of our narrative, we must add one
more reason to specify the player via the <pluginspage> attribute: If you
don’t, the browser will choose one for you, often with hideous results.
Read on.
When you encountered a site that contained a sound, the page would stop
loading, and the browser would seem to freeze. In the status bar, the
dreaded words “Starting Java…” would appear. After a Vietnam-like eter-
nity, the ugly console would at last pop up and blast the stupid sound.
Now, suppose you did not feel like waiting for this mockery of a sham to
run its course. Suppose you attempted to close the browser window or nav-
igate to a previously visited site via the Back button. What would happen
then? The browser would crash, of course.
If most people did not detest embedded sound files to begin with, this
tragicomic exercise in non-user-centric design certainly encouraged them
to think of embedded sounds as one of Satan’s more diabolical efforts.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:25 AM Page 382
To work around this, most developers step in at this point and write a plug-
in detection script. The theory is simple: If the user has the plug-in, the
embedded content plays. If the user lacks the plug-in, some alternative is
provided (perhaps something as simple as text). The user is never made to
feel inadequate, never made aware that she might be missing something.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:25 AM Page 383
And web designers who don’t keep track of the ever-changing browser
compatibility scene still make silly mistakes, particularly where IE5/Mac is
concerned. For instance, even though IE5/Mac handles plug-in detection
flawlessly, many Flash sites, when they detect the presence of IE on a Mac,
refuse to let the user proceed until she has switched to Netscape’s browser.
This makes no sense, but it happens all the time.
We fear we are beginning to lose some of you in the back row. Snap out of
it. We’re almost done, honest.
Indeed, as we’ll see in a moment, companies not only gave stuff away free,
they paid other companies to promote their free stuff. Never have so many
spent so much to earn so little. (Excluding the browser wars themselves, of
course. Those cost even more and made even less.)
Okay, so as a result of giving all this good stuff away for free, Macromedia,
Apple, Real, and Microsoft have achieved what they sought: nearly every-
body uses their plug-ins. So how do these companies recoup their invest-
ment and hopefully even squeeze out a profit?
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:25 AM Page 384
Though Apple sells professional QuickTime suites, it also gives away some
extremely capable video authoring tools with every new Mac. What is the
sense in that? The sense in that is that these “free” products come with a
Macintosh. If you want the free product, you buy the Macintosh computer.
Similarly, Microsoft gives away WMF authoring tools to encourage you to
buy Windows products. Some web businesses might have trouble coming
up with revenue models, but software and computer companies generally
don’t.
Today the cash flows in the opposite direction. A movie studio might pay
the purveyor of a popular plug-in to feature its studio instead of a com-
petitive film conglomerate on the plug-in vendor’s “Hot Downloads” page.
Ubiquity makes for destinations, and destinations, if popular enough, can
generate income. To up the income, the plug-in page sprouts ad banners—
from free plug-ins to cold cash in twelve easy lessons.
PARTING SERMON
In Chapter 2, we discussed the way most popular plug-ins stream their pre-
sentations to compensate for slow user dialup modem speeds. We also
reminded you just how slow those dialup speeds really are. Please reread
Chapter 2 before authoring high-bandwidth multimedia content or blithely
adding it to a site for which it might be inappropriate.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:25 AM Page 385
In fact, as the Web grows in popularity, the median average access speed
declines drastically because there are more and more home users for every
luxuriously appointed web professional. Though the field is expanding ten-
fold, the web-using population is growing at many times that pace. Even
if the profession were to stop growing, the number of web users would
continue to rise.
The day of universal high-speed access and fat bandwidth is not at hand.
It’s not even close.
Even those on the fortunate side of the digital divide rarely enjoy the
fastest speeds or the most reliable connections. When the Daily Show’s Jon
Stewart jokes about the AOL busy signal, the entire audience laughs.
They’ve been there. Most of them still are there. They are not only Jon
Stewart’s audience, they are every web designer’s audience. And they’re the
ones in the good seats.
We end this chapter on a somber note, but the book on a happy one. Kindly
proceed to Chapter 13.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
16 0732 CH12 4/24/01 11:25 AM Page 386
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
17 0732 CH13 4/24/01 11:25 AM Page 387
chapter 13
YOUR DIALOG WITH THE WEB has now begun. And though this book, like young
love, must end, our conversation will continue. You will find us, and we will
find you on the pages of the World Wide Web.
You also will learn a great deal from the people who visit your sites. You’ll
be surprised at how many write—and not merely to complain when your
single-spaced, 10px type sends them scurrying to the optometrist.
But some of the best places to learn are on the Web itself, hence this chap-
ter. In it we share our favorite online resources and explain the importance
of continuing your education as the Web and your career experience
growth and change.
SEPARATION ANXIETY
Throughout this book, we’ve shown methods used to design today’s Web
and shared theories about how people interact with the medium. You need
to know these things to begin working now.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
17 0732 CH13 4/24/01 11:25 AM Page 388
But as we’ve also pointed out, the Web is changing; indeed, like the sea, or
like some other Zen metaphor we can’t quite put together here, the Web’s
very nature is one of constant change. Currently the Web is changing in an
intriguing way—one that will move it closer to its founders’ original vision
of an open medium, accessible by all people and available to all sorts of
Internet-enabled devices.
What will empower that happy change? It will come with the separation
of style from content. What does that mean? It means you’ll stop welding
your texts and functions and images together through overextended HTML.
Instead, you’ll keep your visual design in one place (a Cascading Style
Sheet) and your content in another (a series of HTML or XHTML documents;
a database of XML-formatted text). The twain will meet on the web page,
but their behind-the-scenes separation will considerably enhance your
working conditions and your audience’s experience.
This change in the nature of web design as a practice will come when all
web users employ browsers that fully support the standards that empower
us to separate style from content: HTML/XHTML, CSS, XML, JavaScript/
ECMAScript, and the DOM.
Not only do browsers have to change (and they are changing), web design-
ers must also change—a proposition that requires the willingness to con-
tinue learning and to risk discarding methods we’ve spent years perfecting.
The reinvention of ALA coincided with The Web Standards Project’s Browser
Upgrade campaign (http://www.webstandards.org/upgrade/), which urges
web designers to learn about and use the W3C recommendations we’ve
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
17 0732 CH13 4/24/01 11:25 AM Page 389
discussed in this book, even if the resulting sites look less than delicious in
older, nonstandards-compliant browsers. The Browser Upgrade campaign
also asks web designers and content creators to seek ways to encourage
user upgrades so that the Web can improve without leaving anyone behind.
The Browser Upgrade campaign and the ALA redesign were logical next
steps in the evolution of the Web. We launched them while writing this
book, which brings up the problem with books. Namely, while books have
the virtue of permanence, they cannot update themselves as websites can.
We encourage you to continue learning by visiting educational and inspir-
ing websites and reading and participating in web design mailing lists and
forums.
The remainder of this chapter will provide you with plenty to choose from.
Use these resources to amplify parts of this book and to learn more about
the emerging, standards-based Web. At the end of the annotated list below,
we’ll return to offer a final thought about the Web and you.
There are many, many mailing lists and online communities for web design-
ers and developers. Some focus on specific technologies; others are vast,
crowded, and general. Some function as job referral services while others
mainly promote the people who created the list. Some are chaotic, others
restrictive. With a little effort, you will find the ones that make you feel
most comfortable.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
17 0732 CH13 4/24/01 11:25 AM Page 390
390 HOW: Never Can Say Goodbye: From Tag Soup to Talk Soup
A List Apart
http://www.alistapart.com/
Each week A List Apart publishes useful tutorials (“Meet the DOM,” “Fear
of Style Sheets”), challenging opinion pieces (“The Curse of Information
Design,” “Sympathy for the Plug-in”), or both. And each week, after read-
ing these articles, ALA readers respond on the site’s discussion forum. The
site is noncommercial, and you need not reveal your identity or other per-
sonal information to participate in the discussion forums.
Astounding Websites
http://www.astoundingweb.org/
Launched by Glenn Davis and maintained by Dave Bastian, this unique dis-
cussion community was created to honor the best writing, design, and pro-
gramming on the Web. Visit this small, friendly forum to discover inspiring
commercial and noncommercial sites or participate by reviewing sites you
admire. You can also submit your own sites for review in the Site Promo-
tion section.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
17 0732 CH13 4/24/01 11:25 AM Page 391
Dreamless
http://www.dreamless.org/
Evolt
http://www.evolt.org/
Metafilter
http://www.metafilter.com/
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
17 0732 CH13 4/24/01 11:25 AM Page 392
392 HOW: Never Can Say Goodbye: From Tag Soup to Talk Soup
Redcricket
http://www.redcricket.com/
Webdesign-l
http://webdesign-l.com/
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
17 0732 CH13 4/24/01 11:25 AM Page 393
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
17 0732 CH13 4/24/01 11:25 AM Page 394
394 HOW: Never Can Say Goodbye: Eye and Brain Candy
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
17 0732 CH13 4/24/01 11:25 AM Page 395
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
17 0732 CH13 4/24/01 11:25 AM Page 396
396 HOW: Never Can Say Goodbye: Eye and Brain Candy
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
17 0732 CH13 4/24/01 11:25 AM Page 397
The preceding sites show what can be done when original minds combine
fresh content with fine style.
Many of the sites listed require Flash and QuickTime, and it helps to have
a recent browser and a fast connection.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
17 0732 CH13 4/24/01 11:25 AM Page 398
398 HOW: Never Can Say Goodbye: Eye and Brain Candy
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
17 0732 CH13 4/24/01 11:25 AM Page 399
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
17 0732 CH13 4/24/01 11:25 AM Page 400
400 HOW: Never Can Say Goodbye: Eye and Brain Candy
Still hungry? The following design community sites showcase some of the
newest and funkiest work being done anywhere. In addition, most are lov-
ingly designed and cunningly programmed.
Netdiver Net (http://www.netdiver.net/) feeds your eyes with links and your
brain with close-up interviews. Got a great site? Netdiver might review it
if it meets “chief imagineer” Carole Guevin’s criteria: The ‘diver seeks
impeccable content as well as superb design.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
17 0732 CH13 4/24/01 11:25 AM Page 401
Special mentions:
Believe us when we tell you that the sites listed above are not even a frac-
tion of one percent of the best such sites out there. And there is always
room for more, which brings us to our valedictory address:
We’ve said it before and we’ll say it again: If the Web is fascinating simply
as a medium rife with challenges and rich in possibilities, it is even more
alluring when you consider its low barrier to entry. This medium does not
merely permit you to publish your own work, it begs for it.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
17 0732 CH13 4/24/01 11:25 AM Page 402
402 HOW: Never Can Say Goodbye: The Independent Content Producer Refuses to Die!
The real jazz cats might do studio gigs to put three squares on the table,
but dawn always caught them blowing mad bop in crazy uptown clubs.
Real web designers jam after hours too—on personal and collaborative con-
tent and design sites, online magazines, and experimental spaces.
No one is in control of this space. No one can tell you how to design it, how
much to design it, when to “dial it down.” No one will hold your hand and
structure it for you. No one will create the content for you. What is in you?
What thwarted creative potential is burning to get out, grow, and find its
audience?
If you do this well, it will reflect back into the work you do for clients. Not
only will this help your career, it will also enrich your life and the lives of
others. Creating your content, designing it your way, repositioning yourself
from vendor to author, you will have made your mark on the medium and
perhaps on your generation.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 403
Index
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 404
404 applications
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 405
clarity 405
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 406
406 clarity
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 407
conventions 407
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 408
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 409
ECMAScript, 409
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:26 PM Page 410
410 editors.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 411
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 412
412 graphics
graphics, 221. See also images HTML (Hypertext Markup Language), 125. See
animated GIFs, 237-238 also web pages
GIF, 222-230 BBEdit, 242
JPEG, 226-228 browser compatibility, 204
compressing, 231-233 code
optimizing, 228-230 conventions, 176-177
Netscape Color Cube viewing, 183-185
colorblindness, 217 cutting/pasting, 339-340
dithering, 213-218 defined, 175-176
recurring hexadecimal pairs, 216 documents, 256. See also web pages
web-safe color palettes, 215-219 Flash, 376
PNG, 236-237 formatting, 179-181
SVG, 354-358 frames, 194-195
Graphics Interchange Format. See GIF GIFs, 225
HEAD tag, 308
Grey Advertising, Inc., 123
history of, 14-17, 19, 25
GUI (Graphical User Interface), 84-85, 113, 211 images rollovers (JavaScript), 302-306
guidelines Java applets, 346
browsers, 27, 85-87 JavaScript
for interfaces, 82-84 executing, 299-300
links, 300-301
jockeys, 131-132
H links, 185-187
plug-ins, 193-195, 377-378
Happy Cog website, 315 practitioners, 131-132
Harrumph!, 92, 396 redundancy, 47-48
HEAD tag (HTML), 308 sensible markup, 189
SSI , 341-343
headlines, invisible, 255 style sheets, 268-269. See also CSS
hesketh.net, 100 tables, 176, 193-195, 257
hexadecimal pairs, recurring, 216 tags
adding inline styles, 269-270
hierarchies, 20-23, 97-98
closing, 177
High Five, 118 comments, 200-201
highlighting, letting users know where they are in constructing, 178
the site, 101-102 CSS, 256
histories META, 197-200
HTML, 25 typography, 254-256
JavaScript, 286-287 technicians, 131-132
Web, 14-17, 19 text rollovers (JavaScript), 294-295
tools, 190-192
history of the Web, 111-122
tutorials, 181-182
horizontal scrolling, 96 URLs, 180-181
horizontal type, inserting, 240-243 validating, 188
hosts, 114 viewing, 342
WYSIWYG applications, 202-204
Hot Sauce, 351
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 413
interfaces 413
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 414
414 interfaces
formatting, 72-74 J
GUI (Graphical User Interface), 84-87, 211
guidelines for, 82 Java, 343-344
consistency, 82-83 advantages of, 349-350
continual feedback, 84 applets, 346
ease of learning, 82 HTML, 346
interactive behaviors, 78-79 troubleshooting, 347-348
Liquid Design, 51-55 Java Virtual Machine, 344-346
navigation
JavaScript, 26, 119, 127, 285-286, 330
elements, 74-76
applying, 288-290
troubleshooting, 246-247
browser detection/redirection, 312-315
purpose for, 80
default status, 299
sizing, 51
event handlers, 295-298
Interiors, 398 executing, 299-300
Internet, 6, 125-126 global documents, 321-324
accessibility, 65, 67 history of, 287
communities, 35 image rollovers, 302-306
growth of, 22 ImageReady, 250
multimedia, 37-40 links, 300-301
standards, 25 platform/browser detection code, 316-320
typography, 62-64 pop-up windows, 307-310
Internet Channel, 45 pull-down menus, 310-312
resources, 291-293, 324
Internet Explorer, 119-120. See also browsers
rollovers, 225
18-month pregnancy, 31
text rollovers, 294-295
absolute size keywords, 280-281
Macintosh Edition, 121 JavaScript for the World Wide Web: Visual
source code, 185 Quickstart Guide, Third Edition, 292
Internet Information Server (IIS), 181 Jay Boersma’s Web Work, 181
Internet Protocol (IP), 125 jazzradio.net, 102
Internet Relay Chat (IRC), 114 Jobs, Steve, 45, 113
Internet Service Provider (ISP), 45 Joe Jenett’s Coolstop, 401
intranet, 126-127 JPEG (Joint Photographic Experts Group),
226-228
invisible headlines, 255
compressing, 231, 233
invisible text labels, 90 optimizing, 228-230
IP (Internet Protocol), 125 JScript, 287
IpixViewer plug-in, 346 Justin’s Links from the Underground, 117
IRC (Internet Relay Chat), 114
ISDN (Integrated Digital Services Network), 45
ISP (Internet Service Provider), 45
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 415
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 416
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 417
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 418
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 419
Q resources
JavaScript, 291-293, 324
QA (quality assurance), 97 websites, 389
Quark XPress, 28 A List Apart, 390
Astounding Websites, 390
QuickTime, 38, 346, 364-365, 367. See also
Babble List, The, 390
multimedia; video
Dreamless, 391
quotation marks (JavaScript), 299 Evolt, 391
Metafilter, 391
online classes, 392
R Redcricket, 392
viewing for ideas, 393-401
raster images, 221. See also images
Webdesign-1, 392
animated GIFs, 237-238
GIF (Graphics Interchange Format), 222-225, responsibilities of web designers, 136-138
228-230 B2B, 139-140
JPEG, 226-228 B2C, 140
compressing, 231-233 communication, 140-141
optimizing, 228-230 look and feel of web sites, 138-139
PNG, 236-237 medium restrictions, 142-145
reading on screen, 91-93 revisions, fonts, 240
RealPlayer, 42, 362-364 RGB (Red, Green, and Blue), 56, 240.
See also colors
RealSlideshow authoring tool, 353
rich media, 327-329, 350
recurring hexadecimal pairs, 216
multimedia, 352. See also multimedia
Red, Green, and Blue (RGB), 56, 240. SMIL, 352-354
See also colors SVG, 354-58
Redcricket, 36, 392 plug-ins, 358-362
redirecting Beatnik, 368
browsers, 312-315 developing content, 376-381
plug-ins, 379-381 QuickTime, 364-365, 367
RealPlayer, 362-364
redundancy Shockwave/Flash, 369-376
deleting, 47-48 troubleshooting, 381-385
replacing markup, 339-340 WMP, 367
referrer logs, 39 VRML, 350-351
relative keywords, 281-282 rollovers, 211, 294-295
relative links, 185-187 creating, 293
image, 302-306
reloading META tags, 200
JavaScript, 225
replacing
Ron Woodall’s HTML Compendium, 183
missing plug-ins, 346
redundant markup, 339-340 royalties, GIF (Graphics Interchange Format), 223
requirements for design phases of web “Rule of Five,” 99-100
projects, 157 rules, style sheets, 263-266
resolution, 55-61, 278-279. See also colors
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 420
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 421
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 422
422 technologies
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 423
Web 423
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 424
424 Web
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 425
websites 425
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
18 0732 index 4/24/01 1:04 PM Page 426
426 websites
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
19 0732 BM 4/24/01 11:27 AM Page 427
N E W R I D E R S
G R A P H I C S
C L A S S I C S
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
19 0732 BM 4/24/01 11:27 AM Page 428
www.informit.com
Solutions from experts you know and trust.
www.informit.com ■ www.newriders.com
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor