map nested within elements, elements nested within map
Classified as: flow content, phrasing content, palpable content
Parents, map
Children, map
- transparent content model:
- map content model = transparent → map element accepts the elements its parent accepts
- (the elements, possible parents of the map element, are listed above)
e.g.
1: article element, parent of map element
<article> <map>... <⁄map><⁄article>
2:the article element accepts the a element as child
<article> <a> ... <a⁄><⁄article>
Conclusion: if the article element accepts the a element as child, then the map element will accept it too
<article> <map> <a> ... <a⁄> <⁄map><⁄article>
Examples: map parents, map children
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <!doctype html> <> <> <>...</> </> <> <> <> <>...</> <> ... </> </> </> </> |
1 2 3 4 5 6 7 8 9 10 | <!doctype html> <> <> <>...</> <>...</> </> <> </> </> |
Syntax 1: Valid, 1 or multiple map elements allowed per HTML5 document; map nested within article: allowed; a, area nested within map: allowed;
Syntax 2: Invalid, map nested within head: not allowed