tr nested within elements, elements nested within tr
Classified as: -
Parents, tr
Children, tr
Examples: tr parents, tr children
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <!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 15 16 17 18 19 20 21 | <!doctype html> <> <> <>...</> <>... </> <> <>... <> <>...</> <>...</> <>...</> <> <>...</> <>...</> </> </> </> </> |
Syntax 1: Valid, tr nested within thead, tfoot, tbody : allowed; td, th nested within tr: allowed
Syntax 2: Valid, tr nested within table: allowed because tbody absent; td nested within tr: allowed
Syntax 3: Invalid, tr nested within head, body: not allowed; tr nested within table: not allowed because tbody is present (tr should be nested within tbody in this case)