h1 h2 h3 h4 h5 h6 nested within elements,
elements nested within h1 h2 h3 h4 h5 h6
Classified as: flow content, heading content, palpable content
Parents, h1, h2, h3, h4, h5, h6
Children, h1, h2, h3, h4, h5, h6
Examples: h1, h2, h3, h4, h5, h6 parents - children
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 | <!doctype html> <> <> <>...</> </> <> <> <> ...</> </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <!doctype html> <> <> <>...</> <> ...</> </> <> <> <> ...</> </> </> </> |
Syntax 1: Valid, h1 nested inside body, h1 nested inside hgroup: allowed
Syntax 2: Valid, a nested inside h1: allowed
Syntax 3: Invalid, h1 nested inside head: not allowed; h1 nested inside p: not allowed