w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it

select multiple attribute

The multiple attribute on the select element:


4.multiple="",  , multiple<select multiple> ... <⁄select>
<select multiple=""> ... <⁄select>
<select multiple="multiple"> ... <⁄select>

Video demonstration select multiple attribute

HTML5 select multiple attribute Tutorial

min video details
00:00 video tutorial: multiple attribute on select element
00:09 by default select control allows you to select ONLY 1 option from the set of options
00:20 but if you add the multiple attribute on select control, you will be able to select MORE THAN 1 option from the set of options
00:30 you can select multiple options:
- by holding down CTRL key while selecting them OR
- by holding down mouse left button while selecting the options OR
- by holding down Shift key when selecting the last option
00:42 multiple attribute if present on select control, may have the next 2 values:
- empty string: ""
- attribute's canonical name: "multiple"
both values return the true value → the control allows multiple options selection
for false value (= only 1 option can be selected) simply don't add this attribute on the control
select intro select browser display select parents - children select Placeholder Label Optionselect Constraintsselect Exampleselect syntaxselect autofocus attributeselect disabled attributeselect required attributeselect size attribute