WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: web accessiblity - how to vildate JSP page


From: Jared Smith
Date: Jun 27, 2007 2:10AM

On 6/27/07, MUHAMMAD AKRAM < <EMAIL REMOVED> > wrote:
> I was trying to vildate (html vildator w3c) our government website
> http://www.pakistan.gov.pk

Please note that this is a web accessibility mailing list. While I *do
not* want to raise this issue of the impact of validity on
accessibility, the fact that your site does not validate isn't really
relevant to the topics this list addresses.

> it said <!DOCTYPE not exist however when i check the source code it exist!

It is probably throwing the error because the DOCTYPE is not formatted
correctly. DOCTYPE is case sensitive and the text "html" in your page
should be UPPERCASE. Also, it should appear in the first line in the
code - yours is on line 15.

> besides when i tried to check other than home page
> http://www.pakistan.gov.pk/GovContacts_new.jsp
> i got error that it can not be vildate.

There seems to be some encoding error that is causing the error. It is
probably an illegal character somewhere in the several blank lines
before the DOCTYPE declaration.

Jared Smith