Over the past year I’ve struggled to get the Baptcare website to validate when tested against http://validator.w3.org/. My problem was the complexity of the IBM WebCM content management system that powers the Baptcare website and figuring out how to understand and edit its presentation templates, menus and navigation files.
But today I finally got the www.baptcare.org.au website to validate – and it’s only taken a whole year, hurrah!
If you run a website, why not go to http://validator.w3.org/ and test its pages (not just the home page) for HTML errors? If you find any, instruct your web designer to fix them, although if you didn’t originally insist on standards compliance they might well refuse. If you’re commissioning a new website, insist on 100% validation in the contract, and be clear that you’ll withhold payment until it’s achieved.
What types of errors needed fixing on the Baptcare site? Here are a few of the most common ones:
- An XHTML DOCTYPE was changed to a transitional HTML and that solved about 75% of the errors.
- Some tags ended in /> and some in just >. I changed them all to > to match the DOCTYPE.
- Tags were nested incorrectly. For example, there were dozens of <a> anchor tags that contained <h3> heading tags, like this <a><h3></h3></a>. It should have been the other way round.
- There were plenty of lonely, forgotten </p> tags sitting there on their own with no preceding <p> tag.
- Lots of ampersands & in URL links had to be changed to & in order to validate.
So do all Baptcare’s pages now validate 100%? Well, let’s be honest, no. There’s still one recurring error I haven’t got rid of yet, an empty <ul></ul> that the CMS automatically sticks in some pages and not others. That’s technically a validation error because an unordered list should contain one or more <li> list items, but let’s be reasonable… it’s not the end of the world!
And I’m ignoring the Locations page which currently has over 500 errors (originally it was 1,400 which is a quite impressive figure!) and which I intend to completely replace soon with a new, standards-compliant version incorporating the Google Maps API.



Emily,
Surprising how fun HTML coding can be isn’t it? Very satisfying when you figure it out.
Good point about widgets. Why can’t Google and other sites give us widgets that validate without us having to rewrite them?
And the VIC Gov guidelines are useful – but I had to read the lot recently and that wasn’t so fun.