w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



del nested within elements, elements nested within del

Classified as:flow content, phrasing content

Parents, del

Children, del


Examples: del parents, del children

Valid Syntax 1
1
2
3
4
5
6
7
8
9
<!doctype html>
<html>
<head>
<title>...</title>
</head>
<body>

</body>
</html>
Valid Syntax 2
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>
...
<del>
...
</del>
</p>

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

<ol>
<del><li>...</li></del>
</ol>

</body>
</html>

Syntax 1: Valid, del element absent; del element is optional
Syntax 2: Valid, 1 or multiple del elements allowed per HTML5 document; del element nested within p element: allowed
Syntax 3: Invalid, del element nested within head, ol: not allowed; li nested within del: not allowed

del intro del browser display del syntax