code nested within elements, elements nested within code
Classified as: flow content, phrasing content, palpable content
Parents, code
Children, code
Examples: code parents, code 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 | <!doctype html> <> <> <>...</> </> <> <> <><>...</></> </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <!doctype html> <> <> <>...</> <>...</> </> <> <> <>...</> </> </> </> |
Syntax 1: Valid, code nested inside p: allowed
Syntax 2: Valid, em nested inside code: allowed
Syntax 3: Invalid, code nested inside head: not allowed; article nested inside code: not allowed