HTML5 slider on my homepage won't validate
I installed a slider on my homepage that is HTML5, it won't validate on the w3c validator. I was wondering what the best way to get it to validate would be? If I change the doc type to html5 on the validator I only get errors that are related to the mainContentWrapper attributes being obsolete. Should I try to change the table attributes using css to style it and change the doc type? Could this cause problems down the road? Any help would be greatly appreciated, I've been stuck at this point for a while now.
Re: HTML5 and Zen Cart
You pose some very interesting questions :)
First thing to remember is that the w3c validator (and others) only attempt to ensure that the page(s) are compliant to the standards for any given doc type. It says nothing about how the different browsers will render the site.
From what you have posted, and assuming the page(s) display in all the browsers you've tried, then you probably have nothing to worry about, at least for the time being.
If you change the attributes to make the pages html5 compliant and set the doc type to html5, then it'll pass the validation checks, but I suspect that some browsers will 'complain' or not render properly because they themselves are not yet html5 aware, and could possibly fall back to html1.1 (eek).
On the other hand, having html5 elements on the page(s) and not declaring them by the doc type could cause problems to existing browsers simply because they don't know how to handle the html5 elements.
In short, you are caught somewhere between a rock and a hard place :)
Ultimately, all websites will need to be updated for html5 compliance, but whether it is worth doing it yourself now, or whether you'll be better off waiting another year to see how things have evolved is a matter of debate.
Although it is 'nice' to have a site compliant with any given standard, I personally don't put much emphasis on them... Typically I'll only use them to help me find formatting errors (missing or badly formed tags, etc). Then regardless of any other compliance 'errors', I tend to ignore them and rely what I see with my own eyes when I view the site with several different web browsers. It'd be silly have a site with 100% compliance to a particular standard, if the browsers make a mess of things anyway.
As I said, you posed some very good questions, and my response should be considered as personal opinion only, and not to be taken as an authoritive answer.
"The nice thing about standards is that there are so many to choose from" - Andrew S. Tanenbaum
Re: HTML5 and Zen Cart
Thanks Rod for your reply, you bring up some great points. I'm fairly new to the web programming, so I don't want to mess anything up. My site seems to be working great, and the search engine can read it so I'm happy. It would be nice to have my site validate just to pacify my OCD
By brandonturpin in forum All Other Contributions/Addons
Last Post: 7 Jun 2013, 04:51 PM
By k3i7zY in forum Templates, Stylesheets, Page Layout
Last Post: 23 Jul 2010, 02:37 PM
By valentinez247 in forum Installing on a Linux/Unix Server
Last Post: 13 Apr 2010, 07:43 PM
By laavllc in forum Templates, Stylesheets, Page Layout
Last Post: 24 Feb 2010, 02:41 PM
By defkiss in forum General Questions
Last Post: 30 May 2007, 01:09 PM
Content and Graphics Copyright (c) 2003 - 2013 Zen Ventures, LLC - all rights reserved
Zen Cart® is a Registered Trademark of Zen Ventures, LLC