w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



tfoot ... ⁄tfoot, optional element ⁄occurrences

The tfoot element is optional. 1 tfoot element is allowed per table.
Examples

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

<table>
<caption>...</caption>
<thead>...
<tbody>...
</table>

</body>
</html>
Valid Syntax 2
1 tfoot element present
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!doctype html>
<html>
<head>
<title>...</title>
</head>
<body>

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

</body>
</html>
Invalid Syntax 3
multiple tfoot elements present; only 1 allowed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!doctype html>
<html>
<head>
<title>...</title>
</head>
<body>

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

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