XML technologies / CSS / Advanced websites with CSS / Putting CSS in perspective / The benefits of CSS design / Following standards

(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)

WCAG is not the only specification advocating Cascading Style Sheets. Even the current HTML standards assume CSS will be used!

The World Wide Web Consortium (W3C) issues web recommendations. These act as de facto standards guiding browser developers, software vendors and web designers. Its recommendations for semantic HTML and CSS include:

HTML 4

The final version of the recommendation HTML 4 declares all nonsemantic elements and attributes deprecated (deprecated). (Note: deprecated means marked for removal from the specification and no longer recommended for use. A document described as standards-compliant must contain no deprecated HTML tags.) Obsolete presentational elements include the tag <font>. For deprecated elements, the W3C directs authors to use stylesheets rather than HTML attributes for styling and formatting.

XHTML 1.0

XHTML 1.0 reformulates HTML as a specific XML document type. All HTML 4 elements and attributes remain available, alongside XML capabilities such as mixing markup languages and defining custom tags. The same elements and attributes as in HTML 4 are valid.

Web Content Accessibility Guidelines 1.0

The WCAG recommendation explicitly calls for CSS and semantic markup to make web design accessible to people with disabilities. One passage states:

Misusing HTML for presentation, such as tables for layout or headings to change font size, disadvantages users of specialized software by obscuring site structure and navigation. Using presentation elements for structural purposes, such as imitating a table with the element <pre>, greatly complicates output on devices other than conventional monitors.

Many designers claim strict standards compliance is desirable in theory but often impractical. This book will prove otherwise. Today’s browsers already support CSS extensively and give good results with compliant code. Bugs and compatibility issues remain, but are no harder to handle than errors in noncompliant code. Starting with a valid document and stylesheet can actually make debugging easier: only differences in browser rendering remain to be explained, and plenty of help is available online.

  

 

 

 

back to top