XHTML Transitional Compliance Problems

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.)


Leave a Reply

Your email address will not be published. Required fields are marked *