datalist nested within elements, elements nested within datalist
Classified as: flow content, phrasing content
Parents, datalist
Children, datalist
Examples: datalist parents, datalist 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 | <!doctype html> <> <> <>...</> </> <> <> <> <> <> </> </> </> |
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 16 | <!doctype html> <> <> <>...</> <>...</> </> <> <> <> ... </> </> </> </> |
Syntax 1: Valid, datalist nested within body: allowed
Syntax 2: Valid, option elements nested within datalist: allowed
Syntax 3: Invalid, options + other elements (part of phrasing content) nested within datalist: not allowed: it's either option elements either phrasing elements
Syntax 4: Invalid, datalist nested within head: not allowed; section nested within datalist: not allowed