Web Standards & Validation - The Basics

I've often spoken of the importance of having valid markup on your websites - but how do you know if your markup is valid? Fortunately, the organization that is in charge of standardizing web, the World Wide Web Consortium has its own free online validator:

http://validator.w3.org. With this tool, you can check your website for any errors or problems. The results come back with line numbers to make fixing these errors easy.

Similarly, a CSS validator checks your Cascading Style Sheets in the same manner, by cross-checking with standards set by the W3 Consortium. There are some that will also tell you which CSS attributes are supported by different browsers. This validation tool is also available from the W3 Consortium:

http://jigsaw.w3.org/css-validator

So why validate your website?

  1. It helps with cross-browser, cross-platform compatibility, and the future compatibility of new browsers.
  2. Search Engine Visibility: Search engines love valid markup - it makes it easier for them to sift through the content. So, more often than not, a website with valid markup will get higher rankings than one with messy markup.
  3. High quality and professional website - many web designers either do not validate or do not know how to fix a site with errors. Top notch web designers do.

The W3 Consortium Web Standards Checklist

1. Quality of code

  1. Does the site use a correct Doctype?
  2. Does the site use a Character set?
  3. Does the site use Valid (X)HTML?
  4. Does the site use Valid CSS?
  5. Does the site use any CSS hacks?
  6. Does the site use unnecessary classes or ids?
  7. Is the code well structured?
  8. Does the site have any broken links?
  9. How does the site perform in terms of speed/page size?
  10. Does the site have JavaScript errors?

2. Degree of separation between content and presentation

  1. Are all decorative images in the CSS, or do they appear in the (X)HTML?

3. Accessibility for users

  1. Are "alt" attributes used for all descriptive images?
  2. Does the site use relative units rather than absolute units for text size?
  3. Do any aspects of the layout break if font size is increased?
  4. Does the site use visible skip menus?
  5. Does the site use accessible forms?
  6. Does the site use accessible tables?
  7. Is there sufficient color brightness/contrasts?
  8. Is color alone used for critical information?
  9. Is there delayed responsiveness for drop down menus (for users with reduced motor skills)?
  10. Are all links descriptive (for blind users)?

4. Accessibility for devices

  1. Does the site work acceptably across modern and older browsers?
  2. Is the content accessible with CSS switched off or not supported?
  3. Is the content accessible with images switched off or not supported?
  4. Does the site work in text browsers such as Lynx?
  5. Does the site work well when printed?
  6. Does the site work well in Hand Held devices?
  7. Does the site include detailed metadata?
  8. Does the site work well in a range of browser window sizes?

5. Basic Usability

  1. Is there a clear visual hierarchy?
  2. Are heading levels easy to distinguish?
  3. Is the site's navigation easy to understand?
  4. Is the site's navigation consistent?
  5. Does the site use consistent and appropriate language?
  6. Does the site have a sitemap page and contact page? Are they easy to find?
  7. For large sites, is there a search tool?
  8. Is there a link to the home page on every page in the site?
  9. Are links underlined?
  10. Are visited links clearly defined?

Check out your website with the links above and see if it validates. Pass the info on to your web designer. If they can't fix your site, find someone who can. Our programmers here at Avallo write obsessively clean markup and code, and we pride ourselves on the quality of websites we develop. If your website isn't validating, give us a call.