Page 1 of 1

Need help validating one issue

Posted: Tue Jan 10, 2012 10:00 pm
by tech0925
I hate to admit it but I am completely stuck.. LOL

Website: http://www.challengeyourdiet.com/exercise.php

W3C: http://validator.w3.org/check?uri=http% ... ator%2F1.2

I am currently working on a new design and when trying to validate this page I get the error above. I cannot figure out why the radio "checked" is giving me the problem. Does anyone know the solution? Thanks!

Re: Need help validating one issue

Posted: Wed Jan 11, 2012 12:14 am
by twinedev
As it tells you on the error:
How to fix: For attributes such as compact, checked or selected, do not write e.g <option selected ... but rather <option selected="selected" ...

Code: Select all

<input onclick="javascript:submit();" type="radio" value="relevance" class="radioss" name="search_order" checked />
needs to be:

Code: Select all

<input onclick="javascript:submit();" type="radio" value="relevance" class="radioss" name="search_order" checked="checked" />
BTW, I like the look of the site!

Re: Need help validating one issue

Posted: Wed Jan 11, 2012 1:43 pm
by tech0925
Thanks so much, that worked! It was driving me crazy....

Thanks for the compliment as well. The original site was coded by someone else and they did an awful job. Should have done it myself to begin with. LOL I am re designing each page one at a time. Thanks again!