Validation Matters … or does it?
The main site is in the final stages of being revamped, the blog has been renamed and I have started a separate
site as my personal blog to limit the swearing on this site to the bare minimum I can live with.
I would like to point out at this stage that this post is aimed at the less informed whom I will be pointing here in future instead of going through this whole argument with another person who has yet to bother to get the full story before having an opinion. If you really already know, please refrain from stating the obvious in comment to this post – ask nicely in a PM and I’ll gladly spread the linklove.
So … does validation really matter and…
What is validation?
To understand if and why validation matters, we have to look at what we mean by valid markup. Browsers understand HTML (Hypertext Markup Language) and interprets this as the text that you see on a web page such as this one. In the markup we have the ability to place images and manipulate the content of the site. I won’t go into detail as far as the actual HTML and its various elements are concerned as this is not entirely relevant to this post. The W3C (the markup standards authority) in conjunction with developers/designers and generally people who know more about these things than us regular code monkeys do, have established a set of rules/guidelines for web designers to adhere to, ensuring that the markup renders the same in all good browsers.
So, once a designer has finished a design, we’d validate the markup against the rules via the W3C validating service and, if the code is valid, we are allowed to display their mark of approval on the site in question. It is also important to note that markup comes in various forms: HTML (Hypertext Markup Language), XHTML (Extensible Hypertext Markup Language), MathML (Mathematics … essentially), SVG (Scalable Vector Graphics) and SMIL (Synchronised Multimedia Integration Language). MathML, SVG and SMIL are essentially XML for specific types of media and XHTML is where we are headed with HTML – XHTML is (according to the W3C) a stricter and cleaner version of HTML.
Over and above the versions of the markup language, we also have three variations on most of them viz. Strict, Transitional and Frameset. Strict is as it clearly states the least forgiving of the lot, Transitional allows us certain liberties in the transition period between HTML and XHTML (which will inevitably replace HTML) and Frameset is a system of frames governed/controlled by a scripting language – the latter being included simply due to the existing browser support of frames/framesets … they actually defeat part of the object of having valid markup, in that it negates accessibility (which I’ll get to shortly). In short: whatever happens in the frames, stays in the frames … not even Google knows what goes down in there.
The W3C also keeps a watchful eye over scripting and presentational languages (PHP, JavaScript, CSS to name a few), but I’ll make that a topic of another day’s discussion – for now let’s stick to markup.
OK … so that’s a mouthful – in short then, Validation simply means validating any of the above against a set of rules that has been created with the eye on setting a programming standard/good practice for markup – now we just need to get the lot that develops browsers to agree with the HTML squad and we’ll be in damn good shape … NOT!
Why does(n’t) validation matter?
Firstly there the physical appearance of your website is at stake, bad markup (normally) leads to websites that fall apart in various browsers, simply because the browser is not sure how to interpret the markup it is presented with. It is still possible for sites to break even if you have valid markup, but that is something we have to test for before a site goes live.
Good markup and the right markup for the job ensures accessibility and that is what we are after at the end of the day. There is absolutely no point to having a website as a platform for distributing information about your company/organisation and browsers and/or search engines being unable to access that information. For instance: Google is slowly but surely putting more emphasis on content and less on user generated meta tags. Search engines use programs called bots to gather information from a website and indexes that in vast databases, which it draws from when you query the search engine for information and which sites to find this information on. If we hide information from these bots, we might just as well not even bother to have a website.
For one … we have abandoned the practice of putting content in frames, because bots will only crawl the surface/shell, they won’t investigate deeper than is necessary. Using the right HTML elements helps bots to sort information quickly and efficiently. HTML is basically a system of giving elements names for all to recognise them by – we define elements with HTML tags … headers, paragraphs, lists, tables (meant for data and not lay-out) are some examples of HTML elements that we define in order for browsers/search engines to know what our websites offer in the line of information.
Bottom line … Validation Matters!!!
With millions of websites out there, we can simply not afford to lose the competitive edge that we negate the moment that we disregard the rules of the game. I see so many good looking websites that have really been thought through very well from all perspectives, being left to be coded by designers who really couldn’t care about their craft and have an “if it works, it’s valid” attitude towards coding …
