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
1 2 3 4 5 6 7 8 9 10 11 12 13 | <!doctype html> <> <> <>...</> </> <> <> ... </> </> </> |
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> <> <> <>...</> </> <> <> <> <> <>...</> <>...</> <> </> <> <>...</> <>...</> </> </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <!doctype 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