ol nested within elements, elements nested within ol
Classified as: flow content, palpable content (if li child present)
Parents, ol
Children, ol
Examples: ol parents, ol children
1 2 3 4 5 6 7 8 9 10 11 | <!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, ol nested within body: allowed
Syntax 2: Valid, li elements nested within ol: allowed; ol nested within li: allowed
Syntax 3: Invalid, ol nested within head, h1: not allowed; elements (p, h1, a) other than li nested within ol: not allowed