How do cascading style sheets affect Web accessibility?
Cascading Style Sheets (CSS) is a Web markup language, developed by the World Wide Web Consortium (W3C®). CSS accompanies HTML and gives both developers and users more control over how pages are displayed. CSS allows web developers to separate the appearance and presentation of a page (CSS) from its structure and informational content (HTML). This is beneficial since users access content using a wide variety of devices and media. The presentation of a document should therefore not be the same for everyone, but content and structure should be. People with disabilities benefit from this approach because they gain more control over how web pages are displayed or presented.
For example, through browser settings, users with low vision can create their own large-font, high-contrast style sheet and tell the browser to override web pages' existing style sheets with the style sheet that accommodates their needs and reflects their preferences. More information is available in the W3C document Accessibility Features of CSS. There are currently two versions of CSS—CSS1 and CSS2. The latter version, issued by the W3C in May 1998, has tremendous potential for improving accessibility in that it allows for media-specific style sheets, such as aural style sheets and style sheets for nonstandard devices.
Given these accessibility benefits, use of CSS to control the presentation of web content is strongly encouraged. In the W3C's Web Content Accessibility Guidelines (WCAG) 1.0, Checkpoint 3.3 says "Use style sheets to control layout and presentation". The corresponding checkpoint in WCAG 2.0, which is currently a working draft, is Guideline 1.3, which says "Create content that can be presented in different ways (for example simpler layout ) without losing information or structure".
WCAG 1.0 has been the source of some confusion on this topic, since it recommends using style sheets as noted above, but it simultaneously seems to discourage using style sheets. Checkpoint 6.1 says, "Organize documents so they may be read without style sheets. For example, when an HTML document is rendered without associated style sheets, it must still be possible to read the document." This checkpoint should not be misinterpreted as discouraging CSS. Rather, the idea is to use CSS without your site becoming CSS-dependent. Since users have the ability to override the author's specified style sheet, the web content may look very different for these users. Also, users accessing the page with older browsers, text-only browsers, hand-held computers, wireless phones, or other technologies that might not support CSS should still be able to access the content.