Need help validating one issue

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
tech0925
Forum Commoner
Posts: 47
Joined: Wed Nov 09, 2011 2:46 pm

Need help validating one issue

Post 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!
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: Need help validating one issue

Post 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!
tech0925
Forum Commoner
Posts: 47
Joined: Wed Nov 09, 2011 2:46 pm

Re: Need help validating one issue

Post 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!
Post Reply