w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



strong nested within elements, elements nested within strong

Classified as: flow content, phrasing content, palpable content

Parents, strong

Children, strong

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

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

<strong>
<article>
...
</article>
</strong>

</body>
</html>

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

strong intro strong browser display strong syntax