header nested within elements, elements nested within header
Classified as: flow content, palpable content
Parents, header
Children, header
Examples: header parents, header 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 | <!doctype html> <> <> <>...</> </> <> <> <> ... </> </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | <!doctype html> <> <> <>...</> </> <> <> <> ... </> <> ... </> <> ... </> </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <!doctype html> <> <> <>...</> <>...</> </> <> <> <> ... </> </> </> </> |
Syntax 1: Valid, header nested within body: allowed
Syntax 2: Valid, p nested within header: allowed
Syntax 3: Invalid, header, footer, main elements nested within header: not allowed
Syntax 4: Invalid, header nested within head, h1: not allowed