table nested within elements, elements nested within table
Classified as: flow content, palpable content
Parents, table
Children, table
Note: the above elements can be nested inside table element exactly in this order:
1. caption, colgroup, thead, tfoot, tbody OR
2. caption, colgroup, thead, tbody, tfoot OR
3. caption, colgroup, thead, tfoot, tr OR
4. caption, colgroup, thead, tr, tfoot OR
Examples: table parents, table 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 | <!doctype html> <> <> <>...</> </> <> <> <>...</> <>...</> <>...</> <>...</> <>...</> </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <!doctype html> <> <> <>...</> <>...</> </> <> <> <><>...</></> </> </> </> |
Syntax 1: Valid, table nested within table: allowed
Syntax 2: Valid, caption, colgroup, thead, tbody, tfoot elements nested within table: allowed
Syntax 3: Invalid, table nested within head, p: not allowed; a nested within table: not allowed