University of California, Santa Barbara
UCSB WEB STANDARDS

VALIDATION

THE WEB STANDARDS GROUP RECOMMENDS a doctype of XHTML 1.0 Transitional in all Web pages AND validation to that standard.

The doctype tells a validator which version of HTML to use in checking the document's syntax. Here's how the Web Design Group describes XHTML 1.0 Transitional:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
This declares the document to be XHTML 1.0 Transitional. XHTML 1.0 Transitional is an XML version of HTML 4 Transitional... HTML 4 Transitional includes all elements and attributes of HTML 4 Strict but adds presentational attributes, deprecated elements, and link targets. HTML 4 Transitional recognizes the relatively poor browser support for style sheets, allowing many HTML presentation features to be used as a transition towards HTML 4 Strict. - from Web Design Group

To name the doctype, the first line of the document looks like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">

WSG recommends validation to XHTML 1.0 Transitional and CSS 2.1. W3C provides free validators that check HTML and XHTML documents:

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

Copyright © The Regents of the University of California, All Rights Reserved.
UC Santa Barbara, Santa Barbara CA 93106(805) 893-8000
Contact Us Text-Only Terms of Use Accessibility
Last Modified  May 7, 2008