- •Taking Your Talent to the Web
- •Introduction
- •1 Splash Screen
- •Meet the Medium
- •Expanding Horizons
- •Working the Net…Without a Net
- •Smash Your Altars
- •Breath Mint? Or Candy Mint?
- •Where’s the Map?
- •Mars and Venus
- •Web Physics: Action and Interaction
- •Different Purposes, Different Methodologies
- •Web Agnosticism
- •Point #1: The Web Is Platform-Agnostic
- •Point #2: The Web Is Device-Independent
- •The 18-Month Pregnancy
- •Chocolatey Web Goodness
- •’Tis a Gift to Be Simple
- •Democracy, What a Concept
- •Instant Karma
- •The Whole World in Your Hands
- •Just Do It: The Web as Human Activity
- •The Viewer Rules
- •Multimedia: All Talking! All Dancing!
- •The Server Knows
- •It’s the Bandwidth, Stupid
- •Web Pages Have No Secrets
- •The Web Is for Everyone!
- •Swap text and code for images
- •Prune redundancy
- •Cache as Cache Can
- •Much Ado About 5K
- •Screening Room
- •Liquid Design
- •Color My Web
- •Thousands Weep
- •Gamma Gamma Hey!
- •Typography
- •The 97% Solution
- •Points of Distinction
- •Year 2000—Browsers to the Rescue
- •Touch Factor
- •Appropriate Graphic Design
- •User Knowledge
- •What Color Is Your Concept?
- •Business as (Cruel and) Usual
- •The Rise of the Interface Department
- •Form and Function
- •Copycats and Pseudo-Scientists
- •Chaos and Clarity
- •A Design Koan: Interfaces Are a Means too Often Mistaken for an End
- •Universal Body Copy and Other Fictions
- •Interface as Architecture
- •Ten (Okay, Three) Points of Light
- •Be Easily Learned
- •Remain Consistent
- •Continually Provide Feedback
- •GUI, GUI, Chewy, Chewy
- •It’s the Browser, Stupid
- •Clarity Begins at Home (Page)
- •I Think Icon, I Think Icon
- •Structural Labels: Folding the Director’s Chair
- •The Soul of Brevity
- •Hypertext or Hapless Text
- •Scrolling and Clicking Along
- •Stock Options (Providing Alternatives)
- •The So-Called Rule of Five
- •Highlights and Breadcrumbs
- •Consistent Placement
- •Brand That Sucker!
- •Why We Mentioned These Things
- •The year web standards broke, 1
- •The year web standards broke, 2
- •The year web standards broke, 3
- •The year the bubble burst
- •5 The Obligatory Glossary
- •Web Lingo
- •Extranet
- •HTML
- •Hypertext, hyperlinks, and links
- •Internet
- •Intranet
- •JavaScript, ECMAScript, CSS, XML, XHTML, DOM
- •Web page
- •Website
- •Additional terminology
- •Web developer/programmer
- •Project manager
- •Systems administrator (sysadmin) and network administrator (netadmin)
- •Web technician
- •Your Role in the Web
- •Look and feel
- •Business-to-business
- •Business-to-consumer
- •Solve Communication Problems
- •Brand identity
- •Restrictions of the Medium
- •Technology
- •Works with team members
- •Visually and emotionally engaging
- •Easy to navigate
- •Compatible with visitors’ needs
- •Accessible to a wide variety of web browsers and other devices
- •Can You Handle It?
- •What Is the Life Cycle?
- •Why Have a Method?
- •We Never Forget a Phase
- •Analysis (or “Talking to the Client”)
- •The early phase
- •Design
- •Brainstorm and problem solve
- •Translate needs into solutions
- •Sell ideas to the client
- •Identify color comps
- •Create color comps/proof of concept
- •Present color comps and proof of concept
- •Receive design approval
- •Development
- •Create all color comps
- •Communicate functionality
- •Work with templates
- •Design for easy maintenance
- •Testing
- •Deployment
- •The updating game
- •Create and provide documentation and style guides
- •Provide client training
- •Learn about your client’s methods
- •Work the Process
- •Code Wars
- •Table Talk
- •XHTML Marks the Spot
- •Minding Your <p>’s and q’s
- •Looking Ahead
- •Getting Started
- •View Source
- •A Netscape Bonus
- •The Mother of All View Source Tricks
- •Doin’ it in Netscape
- •Doin’ it in Internet Explorer
- •Absolutely Speaking, It’s All Relative
- •What Is Good Markup?
- •What Is Sensible Markup?
- •HTML as a Design Tool
- •The Frames of Hazard
- •Please Frame Safely
- •Framing Your Art
- •<META> <META> Hiney Ho!
- •Search Me
- •Take a (Re)Load Off
- •WYSIWYG, My Aunt Moira’s Left Foot
- •Code of Dishonor
- •WYS Is Not Necessarily WYG
- •Publish That Sucker!
- •HTMHell
- •9 Visual Tools
- •Photoshop Basics: An Overview
- •Comp Preparation
- •Dealing with Color Palettes
- •Exporting to Web-Friendly Formats
- •Gamma Compensation
- •Preparing Typography
- •Slicing and Dicing
- •Rollovers (Image Swapping)
- •GIF Animation
- •Create Seamless Background Patterns (Tiles)
- •Color My Web: Romancing the Cube
- •Dither Me This
- •Death of the Web-Safe Color Palette?
- •A Hex on Both Your Houses
- •Was Blind, but Now I See
- •From Theory to Practice
- •Format This: GIFs, JPEGs, and Such
- •Loves logos, typography, and long walks in the woods
- •GIFs in Photoshop
- •JPEG, the Other White Meat
- •Optimizing GIFs and JPEGs
- •Expanding on Compression
- •Make your JPEGS smaller
- •Combining sharp and blurry
- •Animated GIFs
- •Creating Animations in ImageReady
- •Typography
- •The ABCs of Web Type
- •Anti-Aliasing
- •Specifying Anti-Aliasing for Type
- •General tips
- •General Hints on Type
- •The Sans of Time
- •Space Patrol
- •Lest We Fail to Repeat Ourselves
- •Accessibility, Thy Name Is Text
- •Slicing and Dicing
- •Thinking Semantically
- •Tag Soup and Crackers
- •CSS to the Rescue…Sort of
- •Separation of Style from Content
- •CSS Advantages: Short Term
- •CSS Advantages: Long Term
- •Compatibility Problems: An Overview
- •Working with Style Sheets
- •Types of Style Sheets
- •External style sheets
- •Embedding a style sheet
- •Adding styles inline
- •Fear of Style Sheets: CSS and Layout
- •Fear of Style Sheets: CSS and Typography
- •Promise and performance
- •Font Size Challenges
- •Points of contention
- •Point of no return: browsers of the year 2000
- •Absolute size keywords
- •Relative keywords
- •Length units
- •Percentage units
- •Looking Forward
- •11 The Joy of JavaScript
- •What Is This Thing Called JavaScript?
- •The Web Before JavaScript
- •JavaScript, Yesterday and Today
- •Sounds Great, but I’m an Artist. Do I Really Have to Learn This Stuff?
- •Educating Rita About JavaScript
- •Don’t Panic!
- •JavaScript Basics for Web Designers
- •The Dreaded Text Rollover
- •The Event Handler Horizon
- •Status Quo
- •A Cautionary Note
- •Kids, Try This at Home
- •The Not-So-Fine Print
- •The Ever-Popular Image Rollover
- •A Rollover Script from Project Cool
- •Windows on the World
- •Get Your <HEAD> Together
- •Avoiding the Heartbreak of Linkitis
- •Browser Compensation
- •JavaScript to the Rescue!
- •Location, location, location
- •Watching the Detection
- •Going Global with JavaScript
- •Learning More
- •12 Beyond Text/Pictures
- •You Can Never Be Too Rich Media
- •Server-Side Stuff
- •Where were you in ‘82?
- •Indiana Jones and the template of doom
- •Serving the project
- •Doing More
- •Mini-Case Study: Waferbaby.com
- •Any Size Kid Can Play
- •Take a Walk on the Server Side
- •Are You Being Served?
- •Advantages of SSI
- •Disadvantages of SSI
- •Cookin’ with Java
- •Ghost in the Virtual Machine
- •Java Woes
- •Java Woes: The Politically Correct Version
- •Java Joys
- •Rich Media: Exploding the “Page”
- •Virtual Reality Modeling Language (VRML)
- •SVG and SMIL
- •SMIL (through your fear and sorrow)
- •Romancing the logo
- •Sounds dandy, but will it work?
- •Promises, Promises
- •Turn on, Tune in, Plug-in
- •A Hideous Breach of Reality
- •The ubiquity of plug-ins
- •The Impossible Lightness of Plug-ins
- •Plug-ins Most Likely to Succeed
- •Making It Work: Providing Options
- •The “Automagic Redirect”
- •The iron-plated sound console from Hell
- •The Trouble with Plug-ins
- •If Plug-ins Run Free
- •Parting Sermon
- •13 Never Can Say Goodbye
- •Separation Anxiety
- •A List Apart
- •Astounding Websites
- •The Babble List
- •Dreamless
- •Evolt
- •Redcricket
- •Webdesign-l
- •When All Else Fails
- •Design, Programming, Content
- •The Big Kahunas
- •Beauty and Inspiration
- •Index
Taking Your Talent to the Web |
197 |
<META> <META> HINEY HO!
Though <META> tags have many purposes, web designers and developers most often use them for one of two reasons:
■Accommodating search engines
■Reloading pages or forwarding visitors to an updated page
Regardless of the application, <META> tags are placed in the <HEAD> section 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:
<META NAME= “author” CONTENT= “your name”>
<META NAME= “description” CONTENT= “page description”>
<META NAME= “keywords” CONTENT= “keywords that apply to your page”> <META NAME= “generator” CONTENT= “the editor you used to create your page”> <META NAME= “copyright” CONTENT= “date of copyright”>
<META NAME= “expires” CONTENT= “expiration date”>
Most corporate and business-to-business sites will include only the <DESCRIPTION>, <KEYWORD>, and <COPYRIGHT> tags. After all, AT&T does not need its customers to know who designed the site, what tool they used to edit the HTML, or how old (and outdated) the page may be.
Aside from <HTTP-EQUIV> (the widely accepted predecessor to <DOCTYPE>), there is no reliable standard for <META>. Most search engines rarely use them (Google, for instance, ignores them). Those such as Altavista and Hotbot, which once relied on them extensively, pay them less and less heed as time goes by. Good <TITLE> tags and good, descriptive page copy are more effective at scoring with search engines and directories.
198 HOW: HTML, the Building Blocks of Life Itself: <META> <META> Hiney Ho!
In spite of everything we’ve said, some search engines and directories do pay attention to these tags, and it sometimes falls to the designer to write them. So let’s look at some good and bad ones. Here is a good one:
<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., midwest, developer, supplier, industrial strength, widgetry, 2,000, standard, parts, custom, product, development, shipping, 48 hours, Canda, Europe, Asia, Africa”>
<META NAME= “copyright” CONTENT= “12 January 2001”>
And here is a bad use of <META> tags:
<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, mentioned, is, under, construction”>
<META NAME= “author” CONTENT= “your name here”>
<META NAME= “generator” CONTENT= “Hot Dog Pro”>
The good <META> tags help search engines hone in on what the site actually 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.
<META NAME= “keywords” CONTENT= “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,
Taking Your Talent to the Web |
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 widgets you rode in on will be dropped to the very bottom of any halfway relevant 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 relevant, if unsavory, text. <TITLE> tags and body text are weighted more heavily 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 turning 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.
200 HOW: HTML, the Building Blocks of Life Itself: A Comment About <COMMENTS>
Take a (Re)Load Off
There are times where you want a page to hesitate and then reload. Though this may sound like a tricky process, <META HTTP-EQUIV> tags make it barnyard-simple:
<META HTTP-EQUIV= “REFRESH” CONTENT= “x; URL=http://www.widgets.com/”>
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 problematic 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:
<META HTTP-EQUIV= “REFRESH” CONTENT= “x; URL=http://www.widgets.com/newindex.html”>
Many HTML experts, being spoilsports who live in Ivory Towers and probably 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 technique does work, even with old, non-JavaScript-capable browsers.
A COMMENT ABOUT <COMMENTS>
In your career as a web designer, you will sometimes create entire sites by yourself from scratch. Most of the time, though, you will be working with a team. Occasionally, you will inherit an existing site that needs to be
|
Taking Your Talent to the Web |
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. --> |
|
|
<table border=”0” cellpadding=”0” cellspacing=”0” align=”center”> |
|
|
<tr> |
|
|
<td> |
|
|
<a href=”reading.html”><img |
src=”reading.gif” width=”20” height=”20” border=”0” |
|
alt=”Reading”></a> |
|
|
</td> |
|
|
<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. -->
<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. Professional web designers always comment their markup.
In Chapter 2 we mentioned that designers could save bandwidth by removing white space from their HTML documents. We also mentioned that most of us refrain from this practice because it interferes with the need to continually update existing web documents. Comments exist to facilitate that need. No further comment.