Dan Cederholm is an award-winning web designer and author living in Salem, Massachusetts. As principal of SimpleBits, Dan's design and development consulting firm, he brings years of experience in designing and building sites with web standards. Dan is well known for his redesigns of Fast Company and Inc.com using standards-compliant methods, while pushing the limits of CSS.
Dan is the author of Web Standards Solutions: The Markup and Style Handbook as well as many articles on standards-based design for publications such as A List Apart. Dan also runs the popular weblog SimpleBits, where he writes articles and commentary on the web, technology and life.
- 1. How did you get started in web design/development?
Dan: It all happened rather slowly. I've always been interested in computers. My brother had an old AT&T dual 5 1/4" floppy machine in 1985 or something. I was fascinated. We'd play primitive games in glorious green monochrome, like Zaxxon and some Olympics game that required you to pound the spacebar really fast in order to run, jump hurdles, etc.
Anyhow, fast forward 6 or so years, and I have a Mac. A Classic II that was obsolete the week after I had purchased it. I signed up with AOL just as the Web was beginning. It was exciting. But what I really wanted to do was play music. A few more years go by. I find myself working at a record label, working at a desk with a computer and web access for the first time. I was immediately hooked. I loved the marriage of the creative with the technical. From that point on (probably in 1997 or so) I consumed all the code I could, viewing source on just about any page I would come across.
From there I left the music business and took an entry level job at a regional ISP - at first answering phones, and later doing a bit of design. A year or so at a failed dot com led me to Fast Company magazine in early 2000, where I went on to hone my skills in the world of standards-compliant design and development.
- 2. When did you first become interested in web standards (or standards-compliance) and what was it that persuaded you?
Dan: I sort of "eased" into it. I had been reading Jeffrey Zeldman for a long time, and had experimented with CSS layouts. It was the Wired.com redesign where it all came together and clicked for me. A lot of that had to do with the similarities of Wired.com to the site I was working on at the time - FastCompany.com. I saw how CSS-based layouts could work on a large-scale, and that markup could significantly be trimmed down by going this route. It was from that point on that all I had been reading prior started to make perfect sense.
Immediately, the benefits became clear and the fun of diving deep into CSS for design began.
- 3. You have been responsible for two high profile standards-based websites (Fast Company and Inc.com). If you were to code these again today, what would you do differently?
Dan: Probably quite a bit. Fast Company was done quite a while ago now, and we've learned a lot since then. One of the things I probably would've rethought is the use of absolute positioning for the site's columns. Because of this method, the footer of the site is contained only in the middle content column. Weirdness happens when the content column is shorter than the two sidebars. Going with a float method, you can clear those columns to create a full-width footer. Floats can be tricky though, and at the time, positioning was much easier for me to grasp. And less tricky to implement.
I might also have rethought going with a fluid width. It made designing specific content areas a little difficult, always having to keep in mind that the user's window could be any width at any time. The benefits were that people using small-screened devices would still be able to read the content without scrolling horizontally. There are always tradeoffs with either flexible or fixed-width layouts - but it's something I would've liked to experiment a bit more with.
- 4. Have you ever got frustrated with CSS based layouts and wanted to throw in the towel?
Dan: Ha. Never. OK, sure I curse at IE/Win quite a bit (who doesn't?). But in the end, the benefits when using CSS-based layouts far outweigh a few annoying browser inconsistencies. It can be frustrating at times - but the more people start using CSS, the more workarounds are discovered and easier methods are shared. It'll only get better.
- 5. Could you describe, in simple terms (pardon the pun) what "semantically correct markup" means to you?
Dan: To me it means, "markup with meaning". It's something to strive for while you're building pages - but perfectly semantic pages are nearly impossible if there's complex design to be added.
It's all about stripping down the markup to its barest essentials, while providing a skeleton that a high threshold of browsers and devices can understand.
Here's one example: if I choose to markup the title of my page with an <h1> element, then that title is more likely to be rendered in a way that makes sense in every browser, PDA, phone, assistive software, etc. To me, that's semantically correct markup.
- 6. Your SimpleQuiz series has been incredibly popular. Could you tell us how it started?
In August 2003, Jason Kottke posted some thoughts on how just writing valid markup doesn't necessarily mean it's good. I thought this was a spot on observation at the time, and thought I'd post a little quiz comparing the different ways one could mark up a heading. The question itself was simple, but the discussion that followed was educational. Just by looking at the different ways to approach one page component, we were learning all sorts of stuff.
So, in the beginning it was to help people realize that being *just* valid doesn't necessarily mean it's bullet-proof.
- 7. Have there been comments within the SimpleQuiz series that have persuaded you to change your own ways of marking up content?
Absolutely. I'm learning along with everyone else. Many times, I'd pose the question not really being swayed to one particular answer, but after reading the responses, I may have gained new insight into a method that I'd previously written off. It's like looking over the shoulders of everyone else. That's very valuable.
- 8. When marking up content, there often seems to be a wide variety of options available. How should developers go about choosing the best option?
Yes, exactly :) Web design/development (whatever we're calling it these days) is a strange thing, isn't it? There are so many methods to creating the same results, yet it gives us something to talk about I suppose.
Choosing the best option is the heart of the SimpleQuiz - that by comparing methods, knowing ahead of time the pros and cons of certain markup, it's easier to make the best choice.
I tend to keep these things in mind:
- What will the markup look like unstyled? This is a good one - seeing a page without CSS is like taking an X-Ray of the document. It's easier to diagnose whether you've made a poor choice when you can see the guts of the page.
- Is this element/class/id necessary? I try to strip out unnecessary <div>s, <span>s and classes - paring the markup down. It's easier to read this way, easier for other developers to dive in, faster to download, and the list goes on. It's easy to let elements build up when first constructing a page, but it's worth it to check the necessity of each.
- Is it valid? A no-brainer, but always good to check while you're working. This can also help squash seemingly unexplained bugs.
- How will this affect search engines, screen readers, etc.? A big one, and not always with an easy answer.
- 9. Could you tell us about your hot-off-the-presses book - Web Standards Solutions: The Markup and Style Handbook. What is it about, and who will benefit from reading it?
Gladly. The idea for the book started with the SimpleQuiz back in August of 2003 - with the comparison of multiple methods. So each chapter tackles a different page component (lists, headings, forms, etc.) and presents a few different ways to mark up those components. The second half of the book focuses on CSS-specific topics and throughout the entire book I try to take the examples and go a step further with some additional tricks.
Many of the techniques are a culmination of the tricks I've either come up with, or collected from the community over time.
I think those that will benefit the most are designers and developers that are familiar with web standards, perhaps they've read Jeffrey Zeldman's fantastic book - and they're ready to see how to implement them in their own projects. I'd like to think the book gives you ammunition to understand *why* a certain method has advantages (or disadvantages) over another.
It was a lot of fun to write and an enormous learning experience. Working with Apress/friends of ED has been wonderful and I'm just ecstatic that the whole thing came together.
- 10. Finally, now that you are a published author, what's next? Any exciting new projects in the near future?
More and more of the same I think. I've recently decided to turn SimpleBits into a full-time consulting company and so in turn, I'm working on some cool projects that will see the light soon. I'd love to do more speaking engagements and continue writing of course - but more specifically would love to somehow take the book's format and use that as a guide for a presentation/curriculum based around Web Standards Solutions.
It's all just a matter of having the time to do all of those things, while still staying sane. Summer is approaching, and it'll be hard not to just sit in the backyard with a beer listening to baseball on AM radio.
- Thank you for your time, Dan.
- Dan: Thanks for taking the time to ask the questions.