O'Reilly logo

Head First HTML with CSS & XHTML by Eric Freeman, Elisabeth Robson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Standards, Compliance, and all that Jazz: Serious HTML

image with no caption

What else is there to know about HTML? You’re well on your way to mastering HTML. In fact, isn’t it about time we move on to CSS and learn how to make all this bland markup look fabulous? Before we do, we need to make sure your HTML is really tight (you know... buttoned up, ship shape, nailed down) and we’re going to do that by getting serious about the way we write our HTML. Don’t get us wrong, you’ve been writing first-class HTML all along, but there’s a few things you can do to help the browser faithfully display your pages and to make sure that little mistakes don’t creep into your markup. What’s in it for you? Pages that display more uniformly across browsers (and even display well on mobile devices and screen readers for the visually impaired), pages that load faster, and pages that are guaranteed to play well with CSS. Get ready, this is the chapter where you move from Web tinkerer to Web professional.

image with no caption

Jim: Button up?

Frank: You know, make sure it meets the HTML “standards.”

Jim: Our HTML is just fine... here, look at it in the browser. It looks beautiful. We’re a careful bunch. We know how to correctly form our elements.

Joe: Yeah, that’s what I think... they’re just trying to give us another thing to worry about. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required