View Full Version : Optimization issue html5 attribute

05-15-2011, 06:30 PM
I am trying to validate this file
in html5 validator

The validator is throwing out the script code (drop down box in the top featured section) that has the states, where you pick one and click and it goes to that state. I did not write this script. Can you tell me how to fix it so it will pass the validator? Since there are 50 states - its saying it 50 times.

The name attribute on the option element is obsolete. Use the id attribute instead.
<option name="AR">AR</option> <option name="AZ">AZ</option>

How do I fix this ?