w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



select ... ⁄select Placeholder Label Option

Placeholder label option

If required attribute is present, multiple absent, and size attribute is absent or has the value="1", then a placeholder label option is required.

Video demonstration Placeholder Label Option concept

HTML5 placeholder label option Tutorial

min video details
00:06 video tutorial: the placeholder label option of the select element
00:13 IF:
- the required attribute is present on select element
- the multiple attribute is not present on select element
- the size attribute is not present on select element OR if it's present has the value="1" (size="1")
- the select element has at least 1 child option element which is its first child
- this first child (= option element) has the value="" (empty string)

THEN:
- that option represents the 'placeholder label option' of the select element
00:39 the 'placeholder label option' of the select element
select intro select browser display select parents - children select Constraintsselect Exampleselect syntaxselect autofocus attributeselect disabled attributeselect multiple attributeselect required attributeselect size attribute