Validating XHTML
Housekeeping my xhtml
Call me a purist. I just like to have my code valid. It is also far better for your feeds aswell. They rely on valid code. Lorelle has dug herself into this aswell a while ago and she came up with some tips and hints which might interest you too. Offcourse you should look at WordPress too for they wrote some good stuff on the subject too.
HandsOn experiences with validation
I decided today to do some housekeeping on my postings and pages in general. Guess what… Errors at the validating service from W3C. One very specific error I wasn’t aware of is that you just can’t put <p> everywere. They need to be at the beginning of the lines but not, this was my mistake, nested around an <ul> or an <ol> listing. This just is not up to standards. Just look at a quotation from Elliot Back’s site:
Incorrect nesting of lists. Please do not place lists inside a paragraph tag. The w3c reports this error as “document type does not allow element “ul” here; missing one of “object”, “applet”, “map”, “iframe”, “button”, “ins”, “del” start-tag.”
I found this piece of extra learning at this site here from Elliot Back. He describes, in good to understand language, what the basics are for valid XHTML. I can sincerely recommend it to you.
WordPress Plugin
I thought it might be a good idea to have look around for a suitable plugin that would ease the pain of those errors a bit. It just happens to be that both the standard WordPress editor and the advanced TinyMCE editor aren’t that great at valid coding. What’s more both WP and the editors are sometimes a teeny bit illusive. I just can not always fathom why a piece of [x]html is coded that way or another. I am used to that hands-on feeling with it. So to take matters in my own hand I activated this plugin from Jamie Talbot. It is called ‘XValid’ and as far as I can tell does the job very good. It even tells you what, if any, errors have been corrected. You have full control over what happens to your coding. What is important is that you deactivate WordPress’s own XHTML correction. You can find it under Administration-panel->Options->Writing. Just uncheck the validator from WP where it says “WordPress should correct invalidly nested XHTML automatically”. What is also important for your site’s validations to Xhtml (be it transitional or strict) is the way XValid can email you as the administrator on comments being added that aren’t valid. Or have errors in them. This way you can correct those errors and still have a very clean site.
Validation Resources
These resources will help you validate your web pages and code and can help you understand a little more about how validation works.
HTML – Validation
- Watchfire’s Bobby Validator for Standards and Accessibility – hardest to pass
- W3C Tidy Online
- Windows GUI Interface for TIDY
- Searchengineworld.com’s Validator
- Site Report Card Validator
- Valet Webthing.com
- The W3C’s HTML Validation Service (URL and upload)
- Watson Addy’s Validator
- Alpine Internet HTML Validator
- AnyBrowser’s HTML Validation
- Cynthia Says Validator
- Doctor-HMTL Validator
- HTMLvalidator.com’s Validator
- Website Test Tools and Site Management Tools (mostly paid, some free)
- Software QA and Testing Resource Center
- HTML Tag Checker
- W3.org Tidy Validator
- Cleans Your HTML Code to Shrink It

