figure nested within elements, elements nested within figure
Classified as: flow content, sectioning root, palpable content
Parents, figure
Children, figure
Examples: figure parents, figure 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 20 21 22 23 | <!doctype html> <> <> <>...</> </> <> <> <> ...</> ... </> <> ... <> ...</> </> <> ... </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <!doctype html> <> <> <>...</> <>...</> </> <> <> <> ...</> </> </> </> |
Syntax 1: Valid, figure nested inside body: allowed
Syntax 2: Valid, figcaption nested inside figure as first child, last child or absent: allowed
Syntax 3: Invalid, figure nested inside head, h1: not allowed