w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



sup nested within elements, elements nested within sup

Classified as: flow content, phrasing content, palpable content

Parents, sup

Children, sup

Examples: sup parents, sup 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>
<sup>
...
</sup>
</p>
<sup>...</sup>

</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>
<sup>
<b>
...
</b>
</sup>
</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>
<sup>...</sup>
</head>
<body>

<sup>
<article>
...
</article>
</sup>

</body>
</html>

Syntax 1: Valid, sup element nested within p, body: allowed
Syntax 2: Valid, b nested within sup: allowed
Syntax 3: Invalid, sup nested within head: not allowed; article nested within sup: not allowed

sup intro sup browser display sup syntax