ul nested within elements, elements nested within ul
Classified as: flow content, palpable content (if li child present)
Parents, ul
Children, ul
Examples: ul parents, ul 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 | <!doctype html> <> <> <>...</> </> <> <> <>... <> <>...</> <>...</> </> </> <>...</> </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <!doctype html> <> <> <>...</> <>...<> </> <> <>... <> <>...</> <>...</> <>...</> </> </> </> </> |
Syntax 1: Valid, ul nested within body: allowed
Syntax 2: Valid, li elements nested within ul: allowed; ul nested within li: allowed
Syntax 3: Invalid, ul nested within head, h1: not allowed; elements (p, h1, a) other than li nested within ul: not allowed