caption nested within elements, elements nested within caption
Classified as: -
Parents, caption
Children, caption
Examples: caption parents, caption children
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <!doctype html> <> <> <>...</> </> <> <> <><>...</></> ... </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <!doctype html> <> <> <>...</> </> <> <> <>... <>...</> <>... ... </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <!doctype html> <> <> <>...</> <>...</> </> <> <> <>...</> ... </> <>...</> </> </> |
Syntax 1: Valid, caption nested inside table ⁄ caption is the first optional child of the table element ⁄ a nested inside caption
Syntax 2: Invalid, caption is present but is not the first child of the table element
Syntax 3: Invalid, caption element(s) nested inside elements other than table: head, p, body