w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



map nested within elements, elements nested within map

Classified as: flow content, phrasing content, palpable content

Parents, map

Children, map


Examples: map parents, map children

Valid Syntax 1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!doctype html>
<html>
<head>
<title>...</title>
</head>
<body>

<article>
<map>
<a>...</a>
<area>
...
</map>
</article>

</body>
</html>
Invalid Syntax 2
1
2
3
4
5
6
7
8
9
10
<!doctype html>
<html>
<head>
<title>...</title>
<map>...</map>
</head>
<body>

</body>
</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

map intro map optional, occurrences map browser display map syntaxmap name attribute