Designing With Web Standards 384
Designing With Web Standards | |
author | Jeffrey Zeldman |
pages | 456 |
publisher | New Riders |
rating | 9/10 |
reviewer | Carl Anderson |
ISBN | 0735712018 |
summary | An excellent guide on designing a Web site with the latest Web standards |
Jeffrey Zeldman is one of the best technical writers whose work I've had the pleasure of reading. He is obviously well-educated with regard to the subject, and his passion for the work really shows through. Still, he never comes across as a zealot -- his style is even-handed, thoughtful, and easy to comprehend.
The first part of the book ("Houston, We Have a Problem") is the reason I give a rating of "9" rather than "10." Zeldman spends a perfect length of time on background and history of Web standards (why they're here, and what designers did before they emerged). However, this section seems to suffer from what many technical books suffer from: a case of "We'll see this soon"-itis. While this is perhaps unavoidable in such a treatise, it is nonetheless apparent. Still, it's only marginally distracting.
The meat of the book comes with "Designing and Building." Zeldman first talks about modern markup, then explains the variations on XHTML (i.e. Strict, Transitional, Frameset) and how each ought apply to your design. Here we see more theory than practice, though, but this is welcome -- it lays the foundation for a more cerebral look at distinguishing markup from design. Once Zeldman explains the nuances of that topic, we moveon to the redesign of a Web page constructed with a hybrid table/CSS design complete with all the excellent effects we hope to see in modern pages.
After working through this redesign, Zeldman talks in more detail about the CSS box model (and the browsers that break it), typography, and some of the quirks that Web designers must deal with. Next he touches a bit on Web accessibility--a must-read for everyone, whether you think so or not.
While Zeldman isn't incredibly thorough here, he doesn't need to be--it's a book on Web standards, after all, and this chapter serves to show how accessibility can still be achieved within those standards. He also suggests a couple of other books for more information.
Finally, Zeldman walks the reader through a redesign of zeldman.com, basically as a hands-on summary of the book, and as a guide for future projects. Also included is a "Back End" (i.e., appendix) showing some excellent information about each major browser.
Too often, a book or Web site on XHTML/CSS will dwell only on the "how"--this book shows the "how" and still explains the "why": Here's how you set up an id'ed element; here's why we do that, rather than using a class. It's already opened my eyes to many things I thought I had a handle on, but now realize that I only knew in a cursory fashion.
So, ask yourself: Do you want to design a Web site that will work for everyone, regardless of their platform? Do you want to make sure your Web site is future-proof? If so, you need this book.
You can purchase Designing With Web Standards from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
The back cover (Score:4, Informative)
You can get off the merry-go-round.
It's time to stop living in the past and get away from the days of spaghetti code, insanely nested table layouts, tags, and other redundancies that double and triple the bandwidth of even the simplest sites. Instead, it's time for forward compatibility.
Isn't it high time you started designing with web standards?
Standards aren't about leaving users behind or adhering to inflexible rules. Standards are about building sophisticated, beautiful sites that will work as well tomorrow as they do today. You can't afford to design tomorrow's sites with yesterday's piecemeal methods.
Jeffrey teaches you to:
* Slash design, development, and quality assurance costs (or do great work in spite of constrained budgets)
* Deliver superb design and sophisticated functionality without worrying about browser incompatibilities
* Set up your site to work as well five years from now as it does today
* Redesign in hours instead of days or weeks
* Welcome new visitors and make your content more visible to search engines
* Stay on the right side of accessibility laws and guidelines
* Support wireless and PDA users without the hassle and expense of multiple versions
* Improve user experience with faster load times and fewer compatibility headaches
* Separate presentation from structure and behavior, facilitating advanced publishing workflows
Standards (Score:-1, Informative)
Related resources (Score:5, Informative)
http://zeldman.com/externals/
A good follow-up book is... (Score:5, Informative)
First Book is Better (Score:4, Informative)
A Review Can Be Found Here [codekit.com]
Although I am not very good at web design... what I have learned, I learned from this guy. He rocks.
Davak
The only standards on web code is.... (Score:5, Informative)
Check out the css Zen Garden... (Score:5, Informative)
http://www.csszengarden.com/ [csszengarden.com]
Buy It Link (Score:3, Informative)
Re:The back cover (Score:4, Informative)
XHTML & CSS are tough sometimes, and Zeldman's realistic approach to transitioning to a standard web language is refreshing - he's not a zealot.
I hope more web designers will jump on board this movement - if we ever want to get paid really well and escape the image of the teen with frontpage coding his uncle's website we need to embrace these kind of ideas.
Re:Related resources (Score:5, Informative)
A site worth visiting is http://www.csszengarden.com/ - having lots of alternate stylesheets.
I'm currently working on a project with a designer w/clue. Everything regarding looks and design has moved into stylesheets. All I have to do is to structure the data in suitable divs/blocks (with regard of continuity for the simple text-based browsers).
Re:The only standards on web code is.... (Score:3, Informative)
Don't get me wrong, it's a wonderful tool, but it doesn't eliminate the need for practical books like this.
Re:Mmmhmm (Score:4, Informative)
Flash probably runs faster and has more support, plug-ins and editors on most computers at the moment but SVG is catching up (also SVG supports compression which is cool so it can match flash in file-size).
So basically the book would talk about SVG if it talked about any vector/animation system.
(And without trying to sound like a troll:
Flash = Cheap Hack, SVG = Potentially Structured Nirvana)
Re:Someone get this guy a GF (Score:2, Informative)
2) As for his site sponsorship, see: this link [zeldman.com]
Re:What about CMS solutions? (Score:3, Informative)
It depends on what you need. CMS is a very, very broad term, and most people are looking for a WCMS (Web Content Management System) when they say it, even though their true needs may be different.
I would recommend getting the Content Management Bible, which you can learn more about here [metatorial.com]. It covers the various systems out there. One company I worked for realised they needed a Digital Asset Management system, like Artesia [artesia.com], and not something like Interwoven [interwoven.com].
Good luck! And remember that O'Reilly isn't the only reasonable tech publisher out there.
He supplies alternative styles (Score:2, Informative)
But it's easier to complain...
You're making no sense. (Score:3, Informative)
Yes. Just like you can't view a WordStar 6.0 document in a Web browser.
Free hint: XML is not HTML. It's close, but it's not the same. Any HTML document that is conformant to a given HTML specification can be rendered by any competent HTML browser that's conformant to that specification. If you don't believe me, I can find some very, very old web pages that far predate the 4.01 standard, yet are conformant to the standard of their time, and Firebird renders them perfectly.
Saying "yeah, and when XML-only browsers pop up, all these old pages become unviewable" is a trivial statement. If it's XML-only, then it's not a freaking HTML browser, and it makes no sense to complain that an XML-only browser can't grok HTML. Just like it makes no sense to complain that Firebird can't render WordStar 6.0 documents.
Usings standards to save size (Score:5, Informative)
Imagine having to tell our users (many of which are using GNU/Linux or Macintosh) that our web site only works reliably in Windows with Internet Explorer 6.0 and above. Just because a PR agency can't develop web pages. It's impossible. I had to do something about it.
So when I implemented the layout for our department (scheduled to go live later this month), I scrapped everything they had done. I took a printout of their page (as it looked in Internet Explorer) and marked up what colors and fonts they had used.
Then I set down and wrote the same thing using XHTML/1.0 Strict and CSS1. This was about two days work, but the finished result now validates using w3c's validate tools, and it works reliably in all browsers I've managed to try, all the way back to Mosaic and Netscape 3, with or without images (yes, Lynx, Links, w3 and other text browsers work very well indeed too).
Not only did I get the pages to validate. By using CSS, I was able to get rid of several images they had been using with their design. The overall size of a page, including graphics and CSS, now weighs in at about 35 kbytes. This is compared to around 120 kbytes with the proposed code.
And even better, most things can be cached by the browser (CSS code and images). The only thing that needs reloading when you hit subsequent pages is the dynamic XHTML code, which weighs in at around 5 kbytes, compares to 40 kbytes in the proposed code.
Now, I think our students will like us. This result is even better than the pages that we have today. They render quickly and effortlessly even on old equipment or on extremely slow links.
I havn't been able to convince the faculty to make my code the "default" yet, but they might get the idea once people start noticing that our pages load much more quickly than the rest of the faculty pages.
So, using standards isn't always about making things render nicely in all browsers. It gives you a while heap of nice side effects that isn't worth sneezing at.
Re:Ummm (Score:5, Informative)
http://www.w3.org/Protocols/rfc2616/rfc2616-sec7.
Re:You mean... (Score:5, Informative)
<link rel="stylesheet" href="/main.css" type="text/css">
<style type="text/css"><!--
@import url(/not-netscape4.css);
--></style>
Any browser except Netscape 4 will load both stylesheets, so the standards-compliant code in the second one will override the Netscape 4-specific code in the main one.
Standards are about more than multiple browsers (Score:3, Informative)
Re:Ummm (Score:3, Informative)
Re:The back cover (Score:5, Informative)
Re:So, where's the web site? (Score:3, Informative)
Re:The only standards on web code is.... (Score:3, Informative)
While it's a paid service, Browser Cam [browsercam.com] looks pretty good. You give them a URL and pick a browser/OS combination; they give you a screenshot of your page rendering on that browser and OS.
--Phil (Think I'll be buying this book soon.)
Re:The only standards on web code is.... (Score:3, Informative)
All the old browsers you'll ever need can be found at http://browsers.evolt.org/ [evolt.org].
With IE, can you install mult. versions on the same machine?
On a Mac, yes. On Windows, no. That, combined with IE's frequent security updates, means I never test my sites on anything but the most current version of IE available. The alternative, leaving IE unpatched, doesn't really appeal, even though I don't normally use it for day-to-day stuff.
Re:The back cover (Score:3, Informative)
There is always someone who moans about how hard it is. But the truth is, it's not very hard at all, and if you can't learn how to do it, the I really have to wonder how you managed to learn HTML in the first place.
Re:latest web standards != largest audience (Score:2, Informative)
The point of web standards is not--I repeat not--to make your site look the same in all browsers, but that it should be readable or usable in all browsers. A fancy-schmancy table-based layout may look good in most modern browsers, but just try viewing your wonderful page in lynx [browser.org], or using a screen reader like JAWS [freedomscientific.com] and you'll find your fancy table-based layout has been reduced to ashes.
Using web standards, we can design sites that look good and are still usable, all the way back to the first text-based browsers. Did you know that Netscape 1.0 did not even support tables? So, if there's some schlub out there using it (and if he is, please upgrade... this is 2003, for goodness' sake), your wonderful table-based design is worth squat to him. My site, on the other hand, designed with web standards, will look fine in his copy of Netscape 1.0, so if two similar sites were designed--one with web standards and the other without--who is more likely to keep those readers who are disabled or using old or out-of-date browsers?
One final note before I get off my soapbox. If you need proof that you can do more with standards than without, look at K10k [k10k.net]. While it does still use tables, the site uses style sheets to do most of the work and as a result, the site looks great. CSS is the way of the future, whether you're designing with or without tables. You'd better get used to it.
Re:latest web standards != largest audience (Score:5, Informative)
Now, depending on your audience, you may have to make sure the Netscape 4 version looks visually impressive, but don't think for one second that building your site using tables, bgcolor attributes, and font tags will be done without sacrifice. In web design there is ALWAYS sacrifice, it's just a question of what. If you build a web site using Zeldman's method you sacrifice: