w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



tbody ... ⁄tbody, optional element ⁄occurrences

The tbody element is optional.
tbody can be added once or multiple times in page within one or multiple table elements.
Examples

Valid Syntax 1
tbody element absent; optional element
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!doctype html>
<html>
<head>
<title>...</title>
</head>
<body>

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

</body>
</html>
Valid Syntax 2
1 tbody element present
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>
Valid Syntax 3
multiple tbody elements present
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!doctype html>
<html>
<head>
<title>...</title>
</head>
<body>

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

</body>
</html>
tbody intro tbody browser display tbody parents - children tbody syntax