Why use Web standards?

by Julie Harpring

Mizzou Graduate School

So what exactly are Web standards?

separating structure from content: a diagram

Part 1: Content vs. Presentation

Separating structured content (text, essential images) from presentation (fonts, layout, colors, decorative images, etc.)

Part 2: Valid, Semantic Code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Conforming XHTML 1.0 Transitional Template</title>
</head>
<body>
</body>
</html>

Part 2: Valid, Semantic Code

<body>
<div id=“header”> <h1>The Widget Shop</h1> </div>
<div id=“navigation”><ul><li>Home</li><li>Buy Stuff</li></ul></div>
<div id=“main-content”> 
<h1>Buy Stuff!</h1>
<p>Buying stuff sure is great.</p>
<h2>Stuff You Can Buy at the Widget Shop</h2>
<ul><li>Widget A</li><li>Widget B</li><li>Widget C</li></ul>
</div>
</body>

Part 2: Valid, Semantic Code

Validating with the W3C

The start page for the W3C Validation Service

Part 2: Valid, Semantic Code

Validating with the W3C

Positive results from the W3C Validation Service

Part 2: Valid, Semantic Code

Validating with the W3C

Validation error page from the W3C Validation Service

Part 3: Acessible & Works in All Browsers

“Works” doesn't mean “looks the same.”

Aim for visual consistency in modern browsers, and make sure the design degrades well for older ones. Don't forget about:

Why Use Web Standards?

Section 508: It's the Law

Source: “Accessibility and Section 508,” a lecture by Jeffrey Zeldman, http://happycog.com/lectures/access/

Section 508: It's the Law

The law says sites should …

The Target Case

Source: Ian Lloyd, “Target Sighted,” Web Standards Project, http://www.webstandards.org/2006/09/14/target-interim-ruling/

Who is Using Web Standards?

Mizzou home page

Who is Using Web Standards?

University of Kansas home page

Who is Using Web Standards?

Hiram College home page

Who is Using Web Standards?

Nebraska-Lincoln home page

Who is Using Web Standards?

Michigan State home page

Common hesitations

Common hesitations

Common hesitations

Steven's Testimonial

A heart-wrenching tale of a man who learned to love … standards!