Where Knowledge Rules

Computers & Technology:

Internet

Get a Widget for this title

Reasons for doing HTML validation

I write my HTML code by hand, and being human I make mistakes. Even if you don't always write your HTML directly, mistakes still creep in. Bits of code accidentally get left out, a tag might not be closed, a quotation mark may be left off, or there are just simple typing mistakes. Like a spell-checker, an HTML validator takes my code and makes sure it's "spelled correctly", or more accurately, that its syntax is correct.

The HTML markup standards are laid down by the World Wide Web Consortium (W3C), and it is their standards that web browsers (graphical, text or speech) try to follow and that a good HTML validator will validate against.

Leaving off a single closing </div> can throw a whole page out of whack. You might spot where the problem is straight away, but an HTML validator will flag it up for you and point out exactly where the problem lies. Add to that the mistakes that some browsers magically fix, though others don't, and you can start to see the real value of an HTML validator.

All of the HTML pages that I write go through this processing, in fact they are checked before they ever leave my computer. It's sensible and easy, you should do it too.

However (there's always a "however"), there are various misconceptions that have grown up about validation. The most prominent is a belief that passing the validation test for your HTML (and CSS) will somehow make your website "accessible" and your code will conform to the latest standards.

Validation does NOT:

* automatically make your site accessible to all.

* automatically allow your website to be readable/viewable in any (even up to date) programme.

* automatically allow your website to be readable/viewable on any device.

These are fallacies, sadly perpetuated by people with good intentions who hope that they've found a quick fix for their coding and website accessability issues. Sorry folks, validating your code is part of the process, but there's no easy answer here. You've still got to do the hard sweat and learn stuff for yourselves.

I would add to this the fact that it is still perfectly possible to validate a website against HTML 2, 3 and the old style so-called tag soup of HTML 4.01 Transitional; a potential accessibility nightmare!

NOTE: I'd recommend using HTML 4.01 Strict and looking up how to make accessible websites. A good starting point is the Web Access Initiative at the W3C website:

http://www.w3.org/WAI/

The Web Access Centre on the Royal National Institute for the Blind's (RNIB) website is also


Below are the top articles rated and ranked by Helium members on:

Reasons for doing HTML validation

Add your voice

Know something about Reasons for doing HTML validation?
We want to hear your view. Write_penWrite now!

Helium Debate

Cast your vote!

Should we participate in missing person emails?

Click for your side.

87008

Featured Partner

People for the Ethical Treatment of Animals (PETA)

People for the Ethical Treatment of Animals (PETA) has partnered with Helium, giving you the chance to write for a ca...more

What is Helium? | Buy Web Content | Contact Us | Privacy | User agreement | DMCA | User Tools | Help | Community | Helium’s Official Blog | Link to Helium

Helium, Inc.
200 Brickstone Square Andover, MA 01810 USA