HTML Guides for forms
Learn how to identify and fix common HTML validation errors flagged by the W3C Validator — so your pages are standards-compliant and render correctly across every browser. Also check our Accessibility Guides.
The multiple attribute on the <select> element is a boolean attribute and does not accept a value like "1".
On a <select>, multiple lets the user pick more than one option. Like every boolean attribute in HTML, its meaning comes from whether it is present, not from what you set it to. Writing multiple="1" makes the W3C validator complain because "1" is not one of the values the spec allows.
A boolean attribute can only appear in three forms: the name on its own (multiple), an empty string (multiple=""), or the name repeated as the value (multiple="multiple"). Values such as "1", "true", or "yes" look reasonable but none of them are valid.
Invalid example
<selectname="toppings"multiple="1">
<optionvalue="cheese">Cheese</option>
<optionvalue="mushrooms">Mushrooms</option>
<optionvalue="olives">Olives</option>
</select>
Valid example
<selectname="toppings"multiple>
<optionvalue="cheese">Cheese</option>
<optionvalue="mushrooms">Mushrooms</option>
<optionvalue="olives">Olives</option>
</select>
Dropping the value and keeping just multiple is the clearest way to write it.
Validate at scale.
Ship accessible websites, faster.
Automated HTML & accessibility validation for large sites. Check thousands of pages against WCAG guidelines and W3C standards in minutes, not days.
Pro Trial
Full Pro access. Cancel anytime.
Start Pro Trial →Join teams across 40+ countries