w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



select nested within elements, elements nested within select

Classified as: flow content, phrasing content, interactive content, listed, labelable, submittable, resettable, form-associated element, palpable content

Parents, select

Children, select

Examples: select parents, select children

Valid Syntax 1
1
2
3
4
5
6
7
8
9
10
11
12
13
<!doctype html>
<html>
<head>
<title>...</title>
</head>
<body>

<select>
...
</select>

</body>
</html>
Valid Syntax 1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!doctype html>
<html>
<head>
<title>...</title>
</head>
<body>

<p>
<select>
<optgroup>
<option>...</option>
<option>...</option>
<optgroup>
</select>

<select>
<option>...</option>
<option>...</option>
</select>
</p>

</body>
</html>
Invalid Syntax 3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!doctype html>
<html>
<head>
<title>...</title>
<select>...</select>
</head>
<body>

<select>
<select>
<a>...</a>
</select>
</select>

</body>
</html>

Syntax 1: Valid, select nested within body: allowed
Syntax 2: Valid, optgroup, option nested within select: allowed
Syntax 3: Invalid, select nested within head, select: not allowed; a nested within select: not allowed

select intro select browser display select Placeholder Label Optionselect Constraintsselect Exampleselect syntaxselect autofocus attributeselect disabled attributeselect multiple attributeselect required attributeselect size attribute