validation.html, last updated: Saturday 6th September 2008, 8:46, PT

XHTML and CSS Validation

How correct is your code?

Although your XHTML code will most likely display in most browsers, even if the code contains some errors, you should aim for perfection. Valid XHTML code can be displayed in a whole host of devices including cell phones and BlackBerry devices.

Ensure that your XHTML (and CSS code) is valid by going to these websites:

Validate XHTML

Validate CSS

Validation Tips

HELPFUL HINT #1: 
Use the resource XHTML template as a starting point for your web pages. 
The template has already been validated as XHTML 1.0 Strict with no errors! 
Add a few lines of XHTML code at a time before saving the file and then validating the file.
Add XHTML code and validate little and often.


HELPFUL HINT #2: When you use the above validation services to check the validity of your XHTML code,
you will see a list of error messages if your XHTML is not correct. 
Correct the first listed error first, then re-save and then re-validate the html file. 
This may fix all the errors. 
This is because sometimes one error in an XHTML file creates more errors later on.
The trick is to fix the first error, save the file, 
and then submit it again to the validation service. 
Just work on the first error each time until all errors are dealt with.