Content

XHTML Transitional Compliance Problems

30 Dec

+ 0

So I ran into a few snafu’s trying to use the w3c’s XHTML validator:

1. The doctype declaration is case sensitive. This incorrect doctype:

<!doctype HTML public "-//W3C//dtd html 4.01 transitional//en">

is not the same as this correct one:

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

2. The xml declaration must be put ABOVE your ASP.NET page code.Simple fix, but wouldn’t validate without it.

Now I have earned my nice link in my footer:

Valid XHTML (Not for this site, though.)

Comment

#

I reserve the right to delete and / or modify the comments that contain inappropriate language, spam or other behavior not appropriate in a civilized community. If your comment does not appear, it may be that akismet caught it.