w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it

select ... ⁄select Example

Example select

The above interpretation is demonstrated in the video below.

Video demonstration select element, example

HTML5 select element, example Tutorial

min video details
00:05 example: the select control with 5 attributes
00:10 the 5 attributes are:
autofocus, name, required, multiple, size
00:20 autofocus: the select control is focused when page is loaded
00:32 name: 'options_group' represents the name of the control
00:39 required: it means that at least 1 option is required to be selected
00:47 multiple: multiple options are allowed to be selected
00:53 size: 6 represents the number of options shown to the user
(the entire list of options displays in this case, vertical scrollbar inactive)
select intro select browser display select parents - children select Placeholder Label Optionselect Constraintsselect syntaxselect autofocus attributeselect disabled attributeselect multiple attributeselect required attributeselect size attribute