Forums / General Questions / HTML5 slider on my homepage won't validate

HTML5 slider on my homepage won't validate

Views: 1,301

Results 1 to 3 of 3
9 May 2012, 6:32 AM
#1
amirshawn80 avatar

amirshawn80

New Zenner

Join Date:
Jun 2010
Posts:
27
Plugin Contributions:
0

HTML5 slider on my homepage won't validate

Hi,

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.

Thanks!

9 May 2012, 7:14 AM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: HTML5 slider on my homepage won't validate

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.

Cheers
Rod.

"The nice thing about standards is that there are so many to choose from" - Andrew S. Tanenbaum

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

9 May 2012, 8:46 AM
#3
amirshawn80 avatar

amirshawn80

New Zenner

Join Date:
Jun 2010
Posts:
27
Plugin Contributions:
0

Re: HTML5 slider on my homepage won't validate

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