dl nested within elements, elements nested within dl
Classified as: flow content, palpable content (if dt-dd children present)
Parents, dl
Children, dl
Examples: dl parents, dl 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 | <!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, dl nested within body: allowed
Syntax 2: Valid, only dt, dd elements nested inside dl: (the 1stdt has 1 corresponding dd, the 2nddt has 3 corresponding dd elements): allowed
Syntax 3: Invalid,
dl nested within head, h1: not allowed;
different (p, h1, a) html elements other than dt, dd nested within dl: not allowed