del nested within elements, elements nested within del
Classified as:flow content, phrasing content
Parents, del
Children, del
- transparent content model:
- del content model = transparent → del element accepts the elements its parent accepts
- (the elements, possible parents of the del element, are listed above)
e.g.
1: p element, parent of the del element
<p> <del>... <⁄del><⁄p>
2: the p element accepts the a element as child
<p> <a> ... <a⁄><⁄p>
Conclusion: if the p element accepts the a element as child, then the del element will accept it too
<p> <del> <a> ... <a⁄> <⁄del><⁄p>
Examples: del parents, del children
1 2 3 4 5 6 7 8 9 | <!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 | <!doctype html> <> <> <>...</> <>...</> </> <> <> <><>...</></> </> </> </> |
Syntax 1: Valid, del element absent; del element is optional
Syntax 2: Valid, 1 or multiple del elements allowed per HTML5 document; del element nested within p element: allowed
Syntax 3: Invalid, del element nested within head, ol: not allowed; li nested within del: not allowed