w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



small nested within elements, elements nested within small

Classified as: flow content, phrasing content, palpable content

Parents, small

Children, small

Examples: small parents, small children

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

<p>
<small>

</small>
</p>

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

<p>
<small>
<a>...</a>
</small>
</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>
<small>...</small>
</head>
<body>

<small>
<article>
...
</article>
</small>

</body>
</html>

Syntax 1: Valid, small nested within p: allowed
Syntax 2: Valid, a nested within small: allowed
Syntax 3: Invalid, small nested within head: not allowed; article nested within small: not allowed

small intro small browser display small syntax