pre nested within elements, elements nested within pre
Classified as: flow content, palpable content
Parents, pre
Children, pre
Examples: pre parents, pre 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 | <!doctype html> <> <> <>...</> <>...</> </> <> <> <>...</> </> <> <>...</> </> </> </> |
Syntax 1: Valid, pre nested within body: allowed
Syntax 2: Valid, code nested within pre: allowed
Syntax 3: Invalid, pre nested within head, h1, p: not allowed