w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



b nested within elements, elements nested within b

Classified as: flow content, phrasing content, palpable content

Parents, b

Children, b

Examples: b parents, b 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>
<b>

</b>
</p>

</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>
<b>
<a>

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

<b>
<article>

</article>
</b>

</body>
</html>

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

b intro b browser display b syntax