Government web standards usage: USA
This is the first in a series of articles where we look at how government organisations use the W3C recommendations. Using the mass validation tool from a previous article, Validating an entire site, we have a look at our first contestant: USA. The result: only 13 of 546 government web sites tested use valid HTML.
How the test was carried out
In a previous article I wrote about how you can script a local installtaion of the W3C validator tool using Python. I have since modified the validator to do more checks apart from making sure the HTML is valid. Links to US government web sites were obtained from FirstGov.gov: the U.S. Government’s Official Web Portal. Only the first page of the web site was checked. The test was carried out on September 25.
Test disclaimer
Please note that usage of the W3C recommendations is only an indication of accessibility. A site that does not validate may still be more accessible than one that does. I have not tested every site manually and you may find that some of the valid ones have a valid splash page but fail miserably for the rest of the site. If you find errors, please post them below and I will update the table.
Results
The validation result is presented in a table here. Out of 546 tested web sites only 13 (2.4%) were using valid HTML. No web site used Dublin Core for meta data and the majority of the web sites are using tables for layout. The 13 web sites that did use the W3C recommendations are:
- Bureau of the Public Debt
- Centers for Disease Control and Prevention
- U.S. Commission of Fine Arts
- Commodity Futures Trading Commission Homepage
- United States Court of Appeals for the Federal Circuit
- Federal Emergency Management Agency
- Federated States of Micronesia
- Food and Drug Administration Home Page
- Industrial College of the Armed Forces
- Joint Board for the Enrollment of Actuaries
- The Library of Congress
- Missouri State Government Home Page
- U.S. Sentencing Commission
Coming soon is a look at how New Zealand government web sites use the W3C recommendations.
References
- FirstGov.gov: the U.S. Government’s Official Web Portal.
- Validating an entire site. A modified version of the W3C validator and Python scripts to perform mass validation.

I spot checked a few of these and it’s worth noting, I think, that while the NSA homepage does validate, it’s only a splash page. If you continue to the HTML index, the page does not actually validate.
Derek: As mentioned in the test disclaimer, it is possible that some pages validated are only a splash page. The test, in my opinion, still gives an indication on the current state of web standards usage. NSA will be off the list soon. 14 valid, going downhill…
I see from this post that you are an advocate of the DCMI. You point out that all of the sites tested don’t support the DCMI. I’d say that I have seen very few sites that support it and would have to say that most web developers have no clue what the DCMI is in the first place.
One thing to note is that some of these failures may be due to the inclusion of some very ugly JavaScript from WebTrends. In the case of the sites that I have developed for the government, the syntax is completly valid once you remove the JavaScript. So don’t count out all of the sites just because your report shows a little red X next to the URL.
Justin: If you read the test disclaimer I mention that “a site that does not validate may still be more accessible than one that does”. I am not “counting out” any site based on validation error count. The report shows the number of errors found and if you look at figure you will see that most sites have multiple errors.
In my experience adding javscript for WebTrends does not impact the ability to have a valid site. It is a simple matter of getting the script tag right. Which web site are you refering to?
In particular http://www.disabilityinfo.gov. It is listed on the FirstGov “Site Index” but somehow did not make it into your test (not sure which list of sites you pulled your data from since there are many).
Justin: The list is based on all the sites found at A-Z Index of U.S. Government Departments and Agencies. I know this is not the complete list of all government web sites but it was what I could get in a decent list format. If you have a more comprehensive list of sites I would be very interested in gaining access to it.
State of Louisiana should be removed from the list, in my opinion. The validated page is simply a meta refresher to the actual non-validating front page (256 errors).
I would also find it interesting to see how local governments would fare in this test. As a local government webmaster, whose site does validate and uses CSS for layout, Larimer County Colorado, I think the percentage might be higher. Most of my local government peers are solely responsible for their site, because of the smaller size, and frequently hand code the content rather than using non-standards generating CMSes.
Mathew: Thank you for the information. Louisiana has been dropped. 13 valid sites.
I recently did a big survey of Australian sites (not just government) for their adherence to best practices in development and accessibility. It was presented at WE05.
Similarly disappointing.
The slides are here
http://we05.com/resources/john-allsopp.pdf
the podcast of the presentation is here http://we05.com/podcast/mp3/we05-12-john-allsopp.mp3
A full article and the data will be available soon
john
John: Interesting findings. It looks like you did all those web sites manually. If you have suggestions for tests you feel are lacking from my automated version I would be interested in hearing your suggstions.
I am about to profile more countries (next up is your neighbour New Zealand). If you have a comprehensive list of URLs for Australian government web sites I will “do” Australia too.
As a part of a team that has worked *extremely* hard toward using valid xhtml and prizes both usability and accessibility it’s a little dissapointing to see these results.
One little thing: I notice that the site that I work with (www.maine.gov) says that we have 2 validation errors - yet when I test it I only get one warning — an unencoded ampersand. We work hard to validate every single page within the state government portal.
I often find that people who theorize about validity and accessiblity are not the ones that are responsible for trying to make it happen. The typical government web site has hundreds of thousands, if not millions, of pages all of which are created and maintained by hundreds of people within agencies whose management doesn’t necessarily understand how challenging getting content on the web can be, or the special considerations that need to be taken into account.
I find value in this sort of blunt-tool assessment of where government site are, though I ever day I see talented, hard-working people that are fighting the odds to make sure that the promise of web accessibility becomes a reality and not just some geek theory divorced from the reality of budgets, training, education, and the needs of an incredibly diverse audience.
No excuses; just a little clarification. And remember — automated tests are a pretty blunt tool.
Tim, thank you for your comment. My motive with this test is not to “expose” individual web sites. My ambition is to compare how government policy in various countries affect web standards usage. Many countries have guidelines for government web sites that promote the W3C recommendations.
I agree fully that this test is a blunt tool.
Typically, the number of validation errors vary over time. When the automated test was run there may have been some information that created 2 errors. When I run the validator on http://www.maine.gov right now I get 7 errors.
(If you want to find validation errors on your entire site, have a look at the article Validating an entire site or send me an email and I’ll run it for you.)
Hi,
I presented something similar at WE05 and have just published the results. It’s a little more broad in terms of its criteria, covering 4 areas of best practices in web development, and looks at 83 major sites in Australia across several sectors in government and industry.
Results are here
john
Thank you for this effort toward validation. Our redesigned site was uploaded on 10/01/2006, just after your test. At least the link to the validator shows our improved results.
Can you point me to some information on validating .jsp pages? Some of our Java-developed products don’t produce pages that validate. Please share any resources for validating dynamic pages. Thank you!
Nena: Validating JSP pages is no different than validating pure HTML pages. JSP and other page frameworks create HTML and that is what the validator will look at. It is possible to create valid markup with JSP and other frameworks.
A suggestion is to teach your development organization to use the validator for testing user interfaces during development.
Thanks Peter. I will attempt to do just that.