A New Riders book by Charles Wyke-Smith

Welcome to XHTML

Good XHTML markup makes your content portable, accessible and future-proof. Creating XHTML-compliant pages simply requires following a few simple rules. Also, XHTML code can be easily validated online so you can be sure it is correctly written.

Here are the key requirements for successful validation of your XHTML code.

  1. Declare a DOCTYPE
  2. Declare an XML namespace
  3. Declare your content type
  4. Close every tag, enclosing or non-enclosing
  5. All tags must be nested correctly
  6. Inline tags can't contain block level tags
  7. Write tags in lowercase
  8. Attributes must have values and must be quoted
  9. Use encoded equivalents for left brace and ampersand
more about these requirements

You can find more CSS related links at the Stylin' with CSS site.

Class Project Home

Valid XHTML 1.0!

Valid CSS!

W3C XHTML validation page

W3C CSS Validation Page