Web Development
Web Developer Guidelines
Visual Design Recommendations

Checkpoint 7.2 - Core

Stylesheet validates

WCAG 1.0 Priority 2

WCAG Guideline 3. Use markup and style sheets and do so properly.

To correctly control layout and presentation of the web page using CSS stylesheets correct stylesheet syntax and grammar must be used. This grammar is defined by the W3C in its CSS2 Specification  (www.w3.org/TR/REC-CSS2/). To test that the stylesheet is correct it can be validated against this grammar.

Requirement

Validate the CSS stylesheet.

Recommendation

A CSS stylesheet is considered to validate as long as the validator does not find any errors. Limited warnings are acceptable, however these should be avoided by addressing the underlying problem.

Checking Tool

  • Validate the stylesheet used using the W3C CSS stylesheet validator  (jigsaw.w3.org/css-validator/)
  • Internet Explorer - AIS toolbar: Validate > W3C CSS Validator > Validate CSS
  • Firefox - Web Developer's Toolbar: Tools > Validate CSS

Information Source

The original source of this information is located on the W3C web site  (www.w3.org/TR/WCAG10-TECHS/#tech-identify-grammar)

 

Back to top