Slashdot Mirror


Designing With Web Standards

carl67lp (Carl Anderson) writes "I was recently charged with redesigning my University division's Web site. I hadn't designed a Web site in quite some time, and I wanted to ensure that I did so with everything being 'proper'--the nature of our projects require as large an audience as possible. When I saw Designing With Web Standards available on O'Reilly's Safari bookshelf, I knew I had to snag it. And now, after finishing the book (the first IT book I've ever read beginning to end!), I'm here to preach the book's virtues as the author preaches those of Web standards." Read on for Anderson's review of the book. 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.

69 of 384 comments (clear)

  1. The back cover by Sir+Haxalot · · Score: 4, Informative

    You code. And code. And code. You build only to rebuild. You focus on making your site compatible with almost every browser or wireless device ever put out there. Then along comes a new device or a new browser, and you start all over again.

    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

    --
    I have over 70 freaks, do you?
    1. Re:The back cover by bamurphy · · Score: 4, Informative

      I picked up this book about 2 months ago and it really is one of the best buys on my shelf. Zeldman's book and his sites are wounderful resources that not only contain a good deal of info themselves but point you in the right direction to a really great community of like minded, forward thinking developers.

      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.

    2. Re:The back cover by mbrubeck · · Score: 4, Informative
      You fool. Microsoft's Internet Explorer sets the only "Standards" worth following. Who do you want to view your pages...95% of all users out there, or some wierdo from flyover territory with his pre-paid cell phone?
      I'll take the bait: I want Google to index my site, and Googlebot isn't one of the "95% of all users" running MSIE. Making full use of web standards helps search engines index my pages, saves bandwidth costs, reduces development and maintenance effort, and makes pages load faster for MSIE users, in addition to helping users of other browsers, portable devices, and assistive technologies for the disabled.
    3. Re:The back cover by sharkey · · Score: 3, Funny
      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.

      *sniff* So long, Slashdot, we'll miss you.

      --

      --
      "Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next.
    4. Re:The back cover by Sethb · · Score: 2, Insightful

      Well, realize that you're also cutting off other people, such as the department head that I support, who is blind, and uses a screen reader to navigate the web (quite well, in fact, it amazed me the first time I saw him working). He's not from Hicksville, he has a PhD and is using a Pentium 4 2.4Ghz machine with screen reader software.

      --
      When in danger or in doubt, run in circles, scream and shout. --Robert A. Heinlein
    5. Re:The back cover by JavaLord · · Score: 3, Funny

      and is using a Pentium 4 2.4Ghz machine

      or at least he thinks he is!

    6. Re:The back cover by SoupIsGoodFood_42 · · Score: 2, Informative
      They don't make me cry. Maybe your just not a skilled web developer? It doesn't take that much to support screen readers. A couple of hidden (from screen) links, and a few meanful alt tags, a bit more care in the layout, and that's it.

      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.

    7. Re:The back cover by Omega996 · · Score: 2, Insightful

      MS FrontPage to the rescue! Do you really need to ask? Why else would someone develop such a cavalier attitude about supporting standards, and instead use the excuse of market share, as opposed to technical correctness?

    8. Re:The back cover by HumanTorch · · Score: 2, Interesting

      > portable devices

      Commercial wisdom says: It may work, but its not optimized, so users don't get the best possible experience. There are other valid reasons why you may not want to stream the same markup and/or content at all devices, such as bandwidth speed and low device memory, not to mention readability. W3C device independance working group deals with this.

      Also, there are other more effective ways to increase visibility on Google, such as increasing your link popularity and, unfortunately, paying them.

  2. Mmmhmm by illuminata · · Score: 2, Funny

    So, all those things in the book are great and all, but what about Flash? You can do no wrong with flash, you know.

    --


    Until Slashdot fixes the funny modifier, use insightful or interesting. The poster knows your intentions.
    1. Re:Mmmhmm by schatten · · Score: 3, Insightful

      while you believe there is nothing wrong with flash, there is quite a bit wrong with it in how people utilize it on the web. it is great for menus, but only when necessary. it also doesn't account for usability standards in any way shape or form, expecially for accessibility issues when people do not use a mouse, or are reading from a prompter.

    2. Re:Mmmhmm by FuzzyBad-Mofo · · Score: 2, Insightful

      Read the book title again. And again, until it sinks in. Flash is not a standard, it's a propriatary technology.

    3. Re:Mmmhmm by t_allardyce · · Score: 4, Informative

      Flash isnt a web standard (it has quite a large user base though). The W3C standards answer to flash is SVG which is pretty similar except it ties in with HTML/XML/CSS etc much better, flash is just a hole in the browser where a plug-in is put, while SVG (can also be a plugin) is much more integrated. SVG is also a 'text' based standard like HTML - ie its made up of tags and stuff so its in theory much easier to write generating software for it and link it with server-side scripts and even with client side java/vbs etc scripts (why re-invent the wheel with flash scripting and proprietory expensive server-side software when you can use existing layers like perl,PHP,java,asp, basically anything?). While flash is a more closed system designed by Macromedia to fill a gap in a business like manner, SVG is structually better - kindof like the way HTML tables were/are used to design sites, they are a work around where-as CSS (if the browser supports it properly) is a far better more structured way to do the job.

      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)

      --
      This comment does not represent the views or opinions of the user.
    4. Re:Mmmhmm by frank_adrian314159 · · Score: 4, Funny
      You can do no wrong with flash, you know.

      Ladies and gentlemen, we now have proof of the existance of the Anti-Christ, here on Earth! First, the user name "illuminata" is too Luciferian to be denied. Next, note the Slash UID 668963 containing "the Number of the Beast". Finally, we have the demonic message itself!

      Prepare for the Apocalypse, for it is surely at hand! Slashdot has spoken!

      --
      That is all.
    5. Re:Mmmhmm by Performer+Guy · · Score: 2, Interesting

      Except that flash is an overly complex implementation nightmare that is never the same on any two platforms especially when you start getting into animations.

      The SMIL animation spec is ambiguous in places and tries to be all things to all men, failing badly.

      Show me one SVG implementation that is adequately functional. Even Adobe's SVG implementation fails miserably on some very simple tests.

  3. Related resources by polyhue · · Score: 5, Informative

    He also has an excellent list of related resources and links on design and accessibility:

    http://zeldman.com/externals/

    1. Re:Related resources by Penguin · · Score: 4, Informative

      In general, a lot of the stories at A List Apart is worth reading: http://www.alistapart.com/stories/

      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).

      --
      - Peter Brodersen; professional nerd
  4. You mean... by smackjer · · Score: 3, Insightful

    You mean it's not enough to make sure it works in IE6 on Windows XP?? I wish more web "developers" were concerned with standards. Not only does it make their job easier, it makes it easier to use their sites (assuming the browser developers are equally concerned with standards).

    --

    This is my sig. There are many like it, but this one is mine.
    1. Re:You mean... by Phroggy · · Score: 4, Informative

      Make your main stylesheet, then figure out which things don't work correctly in Netscape 4 (e.g. the width of a box incorrectly includes the padding, so for NS4 you should add the left and right padding when specifying a width). Where they differ, put the Netscape 4 code in the main stylesheet and the standards-compliant code in a second stylesheet. Comment the main stylesheet so you remember which code is specific to Netscape 4. Then load your stylesheets like this:

      <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.

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
    2. Re:You mean... by Micah · · Score: 2

      Better yet, just let Netscape 4 die!!! :-)

  5. Re:Standards by grub · · Score: 5, Funny


    Standards are for pussies

    Don't you Microsoft people do anything but read slashdot all day?

    --
    Trolling is a art,
  6. A good follow-up book is... by ColoradoSkier · · Score: 5, Informative

    Eric Meyer on CSS. I finished Zeldman's book about a week ago and am now going through Eric Meyer on CSS. Zeldman tells you what needs to be done, and gives some examples, Eric Meyer gives you a bunch of practical examples. Guess this is why can be purchased as a pair at Amazon...

  7. First Book is Better by Davak · · Score: 3, Informative

    I agree that he is an excellent tech writer. However, I thought his first book was much better than this one.

    A Review Can Be Found Here

    Although I am not very good at web design... what I have learned, I learned from this guy. He rocks.

    Davak

  8. The only standards on web code is.... by Lord_Slepnir · · Score: 5, Informative

    The only standards you need to follow are the W3C Web Standards They even have a validator for your convience if you need to make sure that your code is valid. I did that at my summer internship and over the course of a summer was able to make our 1000+ page website 99% w3c complient. It might take you a few days to get in the rythym of doing things, but once we had our site up to html 4.01 standards, we never had a problem with any browser compatability issues, and we tested all the way back to Netscape 4.7.

    1. Re:The only standards on web code is.... by Phroggy · · Score: 2, Informative

      A site I'm building has a lot of browser-specific CSS code - stylesheets that will only be loaded by certain browsers. Every bit of it validates at validator.w3.org (except for internet-explorer.css, which is only loaded by MSIE 5 and 6 on Windows, and is loaded using conditional comments which the W3C validator doesn't parse). The problem isn't creating code that the W3C says is valid, the problem is creating code that works as you intend across multiple browsers, which the W3C won't help you with.

      Don't get me wrong, it's a wonderful tool, but it doesn't eliminate the need for practical books like this.

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
    2. Re:The only standards on web code is.... by Phil+Gregory · · Score: 2, Informative

      While it's a paid service, Browser Cam 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.)
      --
      355/113 -- Not the famous irrational number PI, but an incredible simulation!
    3. Re:The only standards on web code is.... by elemental23 · · Score: 2, Informative

      How does one go about getting OLD versions of browsers to check their sites with?

      All the old browsers you'll ever need can be found at http://browsers.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.

      --
      I like my women like my coffee... pale and bitter.
  9. Standards? What standards? by Tebriel · · Score: 2, Funny

    Since when does the web have standards?

    --
    The Blaster Master Fighting for Truth, Justice, and Evil Pie since 1979
  10. Check out the css Zen Garden... by phallstrom · · Score: 5, Informative

    I happened across this site the other day... it really shows off what CSS can do. No idea how it looks in IE, but in Firebird it's pretty amazing. Pick a design from the left and note that it's all style sheets...

    http://www.csszengarden.com/

    1. Re:Check out the css Zen Garden... by iangoldby · · Score: 2, Interesting

      My first view of this site was like yours. But then I began to think - all these designs are basically similar. A lot of bitmaps, and clever positioning CSS.

      What is more interesting is what is missing:
      1. No liquid layouts.
      2. Few designs that are fully robust against changes in font size.
      3. Almost all designs rely 100% on bitmaps for their graphic design. Has anyone tried a pure CSS no bitmap design using borders, styled text, etc? That's much more of a challenge.

  11. So, where's the web site? by winkydink · · Score: 3, Insightful

    Where is the completely compliant web site that thet reviewer was designing prior to reading this book? It would be pretty darn interesting to see what it looks like.

    --

    "I'd rather be a lightning rod than a seismometer." -Ken Kesey

    1. Re:So, where's the web site? by GeorgeH · · Score: 2, Informative

      His site is http://www.zeldman.com/, the book's site is http://www.zeldman.com/dwws/ and one of the sites he's built using web standards is http://www.wired.com/

      --
      Why can't I moderate something "Wrong" or at least "Grossly Misinformed"?
  12. future-proof? no such thing by proj_2501 · · Score: 2, Insightful

    A Web page that was HTML 3.2 compliant is not standards-compliant at all these days.

    How do we know the W3C won't change the standard AGAIN in three years?

    1. Re:future-proof? no such thing by Anonymous Coward · · Score: 2, Insightful

      Nonsense.

      It is still HTML 3.2 compliant.

      It may not follow the latest standard, but a browser should still be able to render it correctly.

      W3C standards are not changed. New ones are added.

    2. Re:future-proof? no such thing by geoffspear · · Score: 3, Insightful

      Yes it is, as long as its doctype declaration doesn't claim it's XHTML or something. Standards compliance has nothing to do with following the latest standards, it has to do with following some standard. 99% of the stuff on the web today doesn't follow whatever standard it claims to follow.

      --
      Don't blame me; I'm never given mod points.
  13. Buy It Link by _newwave_ · · Score: 3, Informative

    Bookpool is always cheaper!

    1. Re:Buy It Link by Phil+Gregory · · Score: 2, Interesting

      According to ISBN.nu, amazon.co.uk has it for $21.73, and overstock.com has it for $20.59.


      --Phil (Transparent plug for ISBN.nu, one of my favorite book-pricing sites.)
      --
      355/113 -- Not the famous irrational number PI, but an incredible simulation!
  14. If only the boss could understand the virtues by 192939495969798999 · · Score: 4, Insightful

    It seems to me that the larger problem with web standards' adoptions is that many managers would prefer to just have crap, so long as they can have it "right now", and forego the longterm financial savings that web standards coding can provide. I would like to see a book on how to implement a web standard or two that will really save a lot of time right from the beginning, versus the kinds of major changes that take weeks to months to implement -- weeks & months that no small-business manager wants to pay for.

    --
    stuff |
  15. Zeldman.. Hmmph! by Cyphertube · · Score: 2, Insightful

    I like standards. I like accessibility and usability. I hate Zeldman's site. It's like hypocrisy in motion. If I lectured on web design and make sites usable, I might improve my site from where it is.

    Zeldman makes life tough on older viewers, disabled, and newbies. His labels are quippish and arrogant, his colours too similar, fonts too small and not resizeable in the most prominent browser out there.

    Take a look around and you'll probably find better books on standards. Or, if you must, take the gospel of Zeldman and water it down with a little Jakob Nielsen.

    --
    Linux - because it doesn't leave that Steve Ballmer aftertaste.
  16. What about CMS solutions? by RichardtheSmith · · Score: 5, Interesting

    Forgive me if this sounds clueless, but most people who are given the
    task of setting up a web site are going to be looking at ways to not
    have to do it from scratch. There are a lot of CMS (Content
    Management Systems) out there, some free, some not. What *I* really
    need is an O'Reilly book about CMS that helps wade through all the
    stuff that's out there right now so the reader (me) can make an
    informed decision about which way to go.

    I did a quick check of the O'Reilly web site and all their CMS info
    revolves around XML and Java. This does not help me.

    1. Re:What about CMS solutions? by Cyphertube · · 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. It covers the various systems out there. One company I worked for realised they needed a Digital Asset Management system, like Artesia, and not something like Interwoven.

      Good luck! And remember that O'Reilly isn't the only reasonable tech publisher out there.

      --
      Linux - because it doesn't leave that Steve Ballmer aftertaste.
    2. Re:What about CMS solutions? by mblase · · Score: 2, Interesting

      Forgive me if this sounds clueless, but most people who are given the task of setting up a web site are going to be looking at ways to not have to do it from scratch.

      Then this information is equally valuable to those coding those CMS systems, writing the modules that generate HTML and CSS and JS and all that good stuff. Actually, it's more important -- if you're generating HTML from a single module in a larger CMS site, it's essential to use good HTML-compliant code so that it doesn't accidentally break the modules written by others.

  17. Someone get this guy a GF by Greedo · · Score: 3, Funny

    Am I the only one who noticed that his website is Supported by XDate Speed Dating, 30Dates Speed Dating, and for free online dating, xdate.com?

    Maybe he should take a break from writing and get out to the bar a bit more.

    --
    Tuus crepidae innexilis sunt.
    1. Re:Someone get this guy a GF by jdeisenberg · · Score: 2, Informative

      1) He's married.

      2) As for his site sponsorship, see: this link

  18. Geesh, don't be silly... by Anonymous Coward · · Score: 5, Funny

    Just open up MS-Word and use File-->Save As
    web page
    Voila! You have now created the perfect web page in ten seconds!
    Microsoft takes care of all of the standards stuff so you don't have to worry your pretty little head about that. No really...don't worry.
    No...don't do "View Source"
    NO! Don't! EVERYTHING IS OK!! STEP AWAY FROM THE KEYBOARD

  19. Re: not true by polyhue · · Score: 3, Insightful

    It will be standards-compliant to its specified version number. If you're compliant with HTML 4.01 today, you will be 5 years from now even if the current spec is XHTML 23. You may not be up-to-date, but you're compliant with the specified version, and a client will be able to render the page with the appropriate DTD and so forth. (afaik)

  20. web standards are really only half the battle. by UrgleHoth · · Score: 2, Interesting

    To add to this, one can follow all the rules making pages comply yet still provide poo usability due to ill-thought layout and navigation on top of a good framework.
    For starters, if you're not familiar with him, here is Jacob Nielsen's site. He is usability guru formerly from Sun.

    --

    Dogma - "let's just say we'd like to avoid any empirical entanglements."
    1. Re:web standards are really only half the battle. by smackjer · · Score: 2, Insightful

      Very good point. Just because your browser renders the page as intended doesn't automatically mean that navigation will be intuitive, or that the user will stick around.

      --

      This is my sig. There are many like it, but this one is mine.
  21. Here's to reading books from start to finish by TheNarrator · · Score: 2, Insightful

    Reading tech books from start to finish is quite underrated. I find that if you don't read every word in a tech book, one often misses important information that can save a lot of time.

  22. Re:Standards by insanecarbonbasedlif · · Score: 2, Funny

    Don't you Microsoft people do anything but read slashdot all day?

    Dude, what else am I going to do? Anytime I try to open Word, Excel, or Visual Basic, it crashes. The only thing I can load is Internet Exploder.

    --
    Just because I doubt myself does not mean I find your position compelling.
  23. He supplies alternative styles by xenoc_1 · · Score: 2, Informative

    Couldn't you see the rather obvious box for selecting different text contrast/size? He uses alternate stylesheets. That even works in IE6. So no problem in the "most prominent browser".

    But it's easier to complain...

  24. You're making no sense. by rjh · · Score: 2, Informative

    And then when XML-only browsers pop up, all these old pages become unviewable.

    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.

  25. Usings standards to save size by Jonas+�berg · · Score: 5, Informative

    Our faculty of the university at which I work has decided on a new layout for their web pages. This was done and delivered to us by a PR agency. I feared that it might be bad, but that fear didn't even come close to what I had to witness.

    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.

  26. Stop IE Now! by naztafari · · Score: 2, Offtopic

    It's irritating the way the world is enslaved to such an awful spyware-magnet standards-flouting browser as MS Internet Explorer.

    Microsoft declared IE6 SP1 as the last standalone browser for lame-ass reasons. The truth is, they're only truly integrating IE into the next Windows Operating System for the first time, to prove their 'point' in the anti-trust case that they couldn't remove the browser from the OS.

    If IE really was such an integral part of the current slew of windows versions, how come it takes ridiculously long to load when you enter a URL into the address bar of an explorer window, and that the people at LitePC was able to remove IE from the Windows operating system?

    Bunch of liars. Guys, help educate everyone and have people switch to either Mozilla or Opera -> Makes Windows boxes more secure and gets rid of the need to buy those stupid superflous pop-up killers. (you can pick up viruses or spyware just by surfing a maliciously coded website and hitting the wrong button)

    None of my family and friends use IE anymore after I educated them about the dangers of IE.

  27. Re:Ummm by dastrike · · Score: 5, Informative
    Internet Explorer violates a lot of standards. And is otherwise nasty to work with.
    • CSS level 1: Not full support despite MS claiming so. E.g.background-attatchment: fixed; works only on the <body element.
    • CSS level 2: Quite a mess, lots of things are broken, e.g. the infamous issues with the box model, and lots of things are not implemented, e.g. position: fixed;
    • XML support is flaky at best, it tends to complain about DTDs even though they are valid.
    • Other nasty quirks such as when having a <?xml ... ?> declaration, then it ignores the doctype and reverts to quirks mode with all the broken box models and such.
    • Violation of the HTTP specification by ignoring the media type received from the server. Internet Explorer will most of the time second-guess the media type instead.

      http://www.w3.org/Protocols/rfc2616/rfc2616-sec7.h tml#sec7.2.1
      If and only if the media type is not given by a Content-Type field, the recipient MAY attempt to guess the media type via inspection of its content and/or the name extension(s) of the URI used to identify the resource.
    I design according to the standards and using Mozilla and Opera 7 as the design references, and then adjust the stylesheets for IE's buggy behavior, so that it renders fine there as well.
    --
    while true; do eject; eject -t; done
  28. Web Standards? by Anonymous Coward · · Score: 3, Funny
    It's no surprise that CmdrTaco didn't write this review.

    *cough*

  29. Standards are about more than multiple browsers by Infonaut · · Score: 2, Informative
    Using XHTML and CSS makes maintenance a lot easier. It makes for leaner code, which results in faster-loading pages. Zeldman's book shows you how to apply XHTML/CSS in a manner that actually works in the real world. In order to get even more value out of the Zeldman book, check out its logical companion, Speed Up Your Site, which focuses on optimizing your code for speed, and for search engine visibility.

    --
    Read the EFF's Fair Use FAQ
  30. Re:Ummm by Phroggy · · Score: 2, Informative

    Try the opposite approach: start by getting it to work in Mozilla, then check it in other browsers. Along the way, use the W3C Validator. If you can't make it work in IE/Win and still validate, there may be a better way to do what you want that is standards-compliant AND works in IE/Win in addition to what you're used to. When that's not the case, use conditional comments (google if you don't know what they are) to let you write code specifically for IE/Win (or specifically for everything else).

    --
    $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
    $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
  31. You need to read this book especially then by metalhed77 · · Score: 2, Insightful

    Web standards are not a validator. Remember HTML and XML and thier bastard child XHTML are a DESCRIPTIVE LANGUAGES. Every element has SEMANTIC value. Something no validator can check. I've seen too many XHTML sites made by people who clearly have no idea how to implement the standard to make this conclusion. A validator only means it's parsable, it does not mean that a document complies philosophically with the W3C. You'd be surprised at the number of XHTML sites using tables for layout.

    --
    Photos.
  32. And Slashdot's score... by mustangsal66 · · Score: 2, Redundant

    Check out how slashdot made out...

    URI:
    Encoding: iso-8859-1
    Doctype: HTML
    Errors: 407
    Revalidate With Options
    :
    Show Source Outline
    Parse Tree ...no attributes
    Validate error pages Verbose Output

    * Note: The URI you gave me, , returned a redirect to .
    * Line 71, column 115: cannot generate system identifier for general entity "alloc_id"
    * Line 71, column 129: cannot generate system identifier for general entity "site_id"
    * Line 71, column 139: cannot generate system identifier for general entity "request_id"
    * Line 161, column 62: cannot generate system identifier for general entity "group_id"
    * Line 161, column 76: cannot generate system identifier for general entity "atid"
    * Line 241, column 74: cannot generate system identifier for general entity "tid"
    * Line 241, column 156: cannot generate system identifier for general entity "mode"
    * Line 241, column 184: cannot generate system identifier for general entity "threshold"

    This page is not Valid HTML!

    Line by line of errors

    ---
    Nice!
    407 lines of errors...

    --
    Why worry? Each of us is wearing an unlicensed "nucular" accelerator on his back.
    Sig changed for readability by G.W.
  33. Re:Ummm by Dracos · · Score: 4, Insightful

    First, a reminder that this is 2003, not 1998, which was the year IE4 and Netscape4 were introduced. Since then, Mozilla has come, and with it Netscape 6 and 7. Also, we've seen the arrival of Konqueror (and Safari) and Opera.

    Netscape 4 is dead: don't worry about it beyond getting your sites to still be legible in it.

    Gecko based browsers, Konq, and Opera all do very well with W3C standards.

    IE, however, has not had a major rendering revamp since version 4. The biggest change was for IE6, which is actually less compliant than previous versions. Sure it fixed some things, but broke many more.

    Among web designers I know, IE is quickly gaining the hatred that had previously been reserved for Netscape4, because they know that NN4 is irrelevant, and the hatred has to go somewhere: the least compliant browser out there... IE.

    Now, why is IE the least compliant? Because MS doesn't see the need to make it compliant. They have their precious market share, which is all they care about... not the users, not the developers which must coddle to IE because it works the way MS sees fit, not the standards bodies which MS continually ignores while attempting to participate.

    The only way to break IE and move to standards is to use them, and explain to users why sites don't work: it's not the site's fault, it's the browser's.

    Given all this, most people who have a clue about W3C standards would say you're doing your development backwards. You'd probably save a lot of time if you coded to the standards first, then hacked up the code for IE.

  34. here's one thing to make sure you don't to by Stevyn · · Score: 2, Interesting

    Do not use style sheets to adjust the font size and the spacing between lines. I am not alone in having a high resolution laptop screen and I've seen too many pages that are unreadable. I adjust the settings in my browser to increase the font size so I can read it. However, when I get to one of these pages where they make the font size really small I adjust the font size so it's big enough to read. However, the font is larger but the spacing between the lines is the same, so all the words are crowded together. I hate this standard and it should be avoided at all cost

  35. This stuff is important by faust2097 · · Score: 2, Interesting

    I know most of the /. crew thinks of web design as a frivolity [the people who manage /. certainly do] but adopting CSS [yes, even for layouts] is important for a number of reasons. It introduces structure to the content that makes it easier to generate, maintain and manipulate. It means that people using old/weird clients [yes, even line-mode browsers] can still use your site. It means that search crawlers have a better chance of getting good info from your site. It means that engineers won't have to support wonky javascript for rollovers or browser sniffing. It also means that programmers never get that Friday at 4:30 pm phone call from angry marketroids who are upset that something is a pixel off. Isn't that worth it?

    For designers this is important as well, as it can make your job easier in some ways. It can also make it more difficult, explaining to your client/marketing person/product manager that it's not going to look identical in every browser is a tough sell at this point. Also, web design is finally becoming its own discipline. As designers we are now responsible for helping our clients and coworkers structure their information in ways that is more flexible and useful. We're not painters anymore, we're part of the construction team.

    Is support perfect across all clients? Nope. Will it ever be? Hell no. Is it good enough? YES.

    Here's some links that show off the potential of CSS:
  36. latest web standards != largest audience by Skapare · · Score: 4, Interesting

    If you want the largest audience possible, then using the latest web standards, such as promoted by Zeldman, is not what you want to do. The reason for this is because not all web browsers in current use work with these standards. And there are many reasons people won't or can't upgrade those browsers.

    There is a way to make web pages so that they can use standards, and still work on older browsers. However, you might not like the end result. What you get on the older browsers is a very poor presentation. For example, if you define the look of your page in cascading stylesheets, when viewed on a browser with no support for CSS, you get crap.

    Boundary conditions are even worse. If the browser is a version that tries to support something, and does it wrong, you can get even worse that crap. It might not work at all.

    Mixing standards can cause problems as well. Here is an example. Lots of designers seem to like blue backgrounds for the side rail menus. But lots of web browsers default to blue for hyperlink text. If you specify the color of the text in a stylesheet, but specify the background color of a table cell (or worse, the whole page), in HTML, then you can end up with a situation where some of what you specify is acted on, and some is not. You'd end up with blue text on a blue background, and therefore unreadable.

    It would be great if everyone could upgrade to the latest browser. But if you are trying to reach the widest audience possible, you do have to consider that many in that audience will be using older computers which have smaller drive space, smaller RAM space, slower CPUs, and can only run older versions of operating systems and browser software. While Linux might well be a great replacement for old versions of Windows on those machines, you still have the problem if shaving a recent version of some Linux distribution down to fit, and getting a huge obese browser to run on a tiny, slow, machine.

    Here is an example of a real web site done in a way that displays terrible on some browsers. You can see what it looks like in Netscape 4 in PNG, or JPEG, or true color GIF (works on Netscape 2 and later) formats. If you scan very close in the blue area on the left (this does not work with the JPEG image), you can see that the colors are #5a61a9 for the background, and #5b61a9 for the text (specified by their HTML in the body tag, so they intentionally did this). By radically exaggerating the red plane (e.g. everything #5a and below is made #00, and everything #5b and above is made #ff), you can see (PNG, JPEG) the text was really there. And you'd think that a state government would be concerned enough about making their site available to all audiences, including the economically disadvantaged who can just barely even get a computer and internet access. But no, they don't actually care (I talked to these people, and they really don't care). Here is another crappy web site. By comparison, this site and this site look fine in this older browser.

    --
    now we need to go OSS in diesel cars
    1. Re:latest web standards != largest audience by Devil · · 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, or using a screen reader like JAWS 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. 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.

    2. Re:latest web standards != largest audience by RedSteve · · Score: 2, Interesting
      What you get on the older browsers is a very poor presentation. For example, if you define the look of your page in cascading stylesheets, when viewed on a browser with no support for CSS, you get crap.

      If you do your css correctly, what you get in browsers that don't support css at all is a page that looks like it was coded in plain vanilla html. Oh no! Big H1s! Purple vlinks! And no carefully crafted marketing widgets! But at the very least, the MESSAGE contained within the html is still available and legible.

      As for browsers with partial css support, this is where an understanding of the shortcomings of different browsers and, more importantly, testing comes into play. (You do test your sites, don't you?) Regardless of whether you are going to make a nested-table, font-tag infested site or a css-complaint site, or anything in between, any web designer worth his or her salt is going to a) know the methods for effectively rendering the content in most browsers and b) test the hell out of those designs to make sure his or her assumptions are correct.

      The designs you cited as displaying poorly had as much -- if not more -- to do with poor testing as it did with CSS support/non-support. You even note as much in your aside about the Texas site:

      "But no, they don't actually care (I talked to these people, and they really don't care)"

      The construction of the page itself is sloppy. The author uses nested table hell to construct the page, and even with the sloppy-friendly doctype of html transitional, it STILL doesn't validate as valid html 4.01. You cannot put that page's problems all at the feet of CSS.

      You note that "Mixing standards can cause problems as well." True enough...but that's even more reason to pick one standard and use it!

      Ironically, the pages that you cite as two that "look fine" in older browsers simply don't validate as well. That's great for the users who use Netscape 4. It's also great for whatever designer ever gets to redesign those sites...because they're so full of nested tables and inline half-assed styles that they'll easily be able to charge those States for 3 or 4 or 10 times what a css-centered update would cost.

      This is not to say that designers only use CSS because it is easier for them to reprogram, but if you accept the basic premise of css -- that html is for structural markup and css is for presentation -- the ease of redesign is a happy side effect. If done correctly, the content (which, many would argue, is the most important part of the page) is not dependant on the whims of styling that may or may not display on a given user's browser.

      In fact your concern that "many in that audience will be using older computers which have smaller drive space, smaller RAM space, slower CPUs, and can only run older versions of operating systems and browser software" is actually helped by a page that depends on properly coded html/css. Because, after all, those older browsers on older systems will ignore the css sheet and display the raw HTML, delivering just the content. This means less time spent rendering unnecessary display tables, less time futzing with every font styled inline, less time loading the widgets the user doesn't need.

      Done properly, html/css really does help reach a larger audience. It may not look exactly like the marketing manager wants it to, but it is still better than nothing.

      (And really, if your boss doesn't mind you coding separate pages for every possible os/browser combo, more power to you. Your job is probably more secure than mine. ;-)

    3. Re:latest web standards != largest audience by telbij · · Score: 4, Informative
      First of all, those sites you mentioned are anything but shining examples of using the 'latest web standards.' Not only do they not validate, but they aren't even attempting to follow Zeldman's philosophy at all. Your close-minded self-righteousness only reveals your lack of knowledge about the web standards movement. Zeldman is no idealist; he is not espousing 'the latest web standards'. He specifically talks about using web standards to solve real world problems. Using his approach you can create sites that look great in IE 5, 5.5, 6, IE Mac 5, Opera, Mozilla, Netscape 6, 7, Konqueror and Safari while degrading to be perfectly accessible in Netscape 4-, IE 4-, Lynx, etc.

      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:

      • Complex layout in browsers v4 and under.
      • Certain techniques that were refined during the era of the v3 and v4 browsers for pixel precise layouts.
      Now if you resort to tables and font tags and the rest you are sacrificing:
      • Size - pages quickly become bloated with nested tables, redundant font tags and unnecessary images.
      • Legibility - Everything is nested in table after table with no clear meaning to different tags.
      • Forward-compatibility - You are betting on browser makers continuing to support non-standardized metrics that arose by coincidence.
      • Accessibility - You don't need standards to support accessibility, but the two really go hand in hand. Using HTML tags as they were intended improves accessibility for non-standard user agents. Adding alt attributes, summaries, skip navigation links and more advanced techniques that are possible with standards make your site infinitely more usable for a blind person.
      • Degradability - If your tag soup doesn't work in a browser you likely get something messy. If a browser doesn't support a standards-based page then maybe you lose the text formatting, but the information is still there.
      • Development time - sure standards are hard to use if you've spent 10 years perfecting image slicing and table nesting, but table-based layouts are much more difficult to modify, update, output from server-side scripts, screen-scrape, or otherwise mess with in typical ways that web designers/developers are often asked to do.
      Your excuses for dismissing standards are all red herrings. No matter how you develop, you are going to have to test your pages in all your target browsers anyway. However, using standards gives you a better chance with untested and future browser releases. Of course they are far from perfect, but resorting to outdated techniques doesn't improve the situation, regardless of how comfortable you might be with it.
  37. Convince your PHBs by Aquitaine · · Score: 2, Interesting

    If you are having trouble convincing management that your site needs to be comply with web standards and you are at all involved with Federal contractors, academia, or any kind of service agency, drop me a line; I am a developer for the Program on Employment and Disability, and we do a lot of work with Section 508/W3C WCAG guidelines in addition to encouraging XHTML, and a big chunk of that is trying to make policy wonks and PHBs aware of these issues in terms that mean things to them. (especially if there is a legal risk to not writing compliant pages, as there is for many people that may not realize it).

  38. using Mozilla+PHP to validate XHTML on the fly by linuxbaby · · Score: 2, Interesting
    Since many Slashdot readers are Mozilla users, I think you'll appreciate this little code bit for your devbox, below.

    This PHP code (and following head tag) put at the very top of any HTML page will tell Mozilla that the .html page following is actually application/xhtml+xml.

    Then if you make ANY little mistake at all in your (X)HTML code, it will completely fail on you, as if it was a script, showing you the exact error and where it lies. It's been a priceless way to check my XHTML syntax without always linking over to w3.org

    <?php
    /* XHTML proper header for browsers that accept it. If using Mozilla, this is a GREAT way to make sure your XHTML validates! */
    if(isset($_SERVER['HTTP_ACCEPT']) AND stristr($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml'))
    {
    header('Content-type: application/xhtml+xml');
    }
    else
    {
    header('Content-type: text/html');
    }
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    < html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>

    etc. (not sure why slashdot comment is adding ; before html xmlns