w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



tbody nested within elements, elements nested within tbody

Classified as: -

Parents, tbody

Children, tbody

Examples: tbody parents, tbody children

Valid Syntax 1
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>

<table>
<caption>...</caption>
<tbody>
<tr>...</tr>
<tr>...</tr>
</tbody>
</table>

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

<tbody>...
<p>
<tbody></td>...
</p>

</body>
</html>

Syntax 1: Valid, tbody nested within table as its last child (after caption; colgroup, thead absent): allowed; tr nested within tbody: allowed
Syntax 2: Invalid, tbody nested within elements(head, body ,p) other than table: not allowed

tbody intro tbody optional, occurrences tbody browser display tbody syntax