w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



u nested within elements, elements nested within u

Classified as: flow content, phrasing content, palpable content

Parents, u

Children, u

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

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

<u>
<article>
...
</article>
</u>

</body>
</html>

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

u intro u browser display u syntax