optgroup nested within elements, elements nested within optgroup
Classified as: -
Parents, optgroup
Children, optgroup
Examples: optgroup parents, optgroup children
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <!doctype html> <> <> <>...</> </> <> <> <> <>...</> <>...</> <>...</> </> </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <!doctype html> <> <> <>...</> <>...</> </> <> <>...</> <> <>...</> </> </> </> |
Syntax 1: Valid, optgroup nested within select: allowed; option elements nested within optgroup: allowed
Syntax 2: Invalid, optgroup nested within elements (head, body, p) other than select: not allowed