w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



var nested within elements, elements nested within var

Classified as: flow content, phrasing content, palpable content

Parents, var

Children, var

Examples: var parents, var children

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

<p>
<var>
...
</var>
</p>
<var>...</var>

</body>
</html>
Valid Syntax 2
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>

<p>
<var>
<em>
...
</em>
</var>
</p>

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

<var>
<article>
...
</article>
</var>

</body>
</html>

Syntax 1: Valid, var nested within p, body: allowed
Syntax 2: Valid, em nested within var: allowed
Syntax 3: Invalid, var nested within head: not allowed; article nested within var: not allowed

var intro var browser display var syntax