option nested within elements, elements nested within option
Classified as: -
Parents, option
Children, option
Examples: option parents, option children
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | <!doctype html> <> <> <>...</> </> <> <> <>...</> <>...</> </> <> <>...</> <>...</> </> <> <> <>...</> <>...</> </> </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <!doctype html> <> <> <>...</> </> <> <> <> <>option 1</> <> option 2</> </> </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <!doctype html> <> <> <>...</> <>...</> </> <> <>...</> <> <>...</> </> </> </> |
Syntax 1: Valid, option nested within datalist, select, optgroup elements: allowed
Syntax 2: Valid, text added inside option: allowed
Syntax 3: Invalid, option nested within elements(head, body, p) other than datalist, select, optgroup: not allowed