w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



tfoot nested within elements, elements nested within tfoot

Classified as: -

Parents, tfoot

Children, tfoot

Examples: tfoot parents, tfoot children

Valid Syntax 1
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>
Valid Syntax 2
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>...
<tbody>...
<tfoot>
<tr>...</tr>
<tr>...</tr>
</tfoot>
</table>

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

<tfoot>...
<p>
<tfoot><col>...
</p>

</body>
</html>

Syntax 1: Valid, tfoot nested within table (after caption, thead and before tbody; colgroup absent, optional element): allowed; tr nested within tfoot: allowed
Syntax 2: Valid, tfoot nested within table (after caption, thead, tbody; colgroup absent, optional element): allowed
Syntax 3: Invalid, tfoot nested within elements(head, body, p) other than table: not allowed; col nested within tfoot: not allowed

tfoot intro tfoot optional, occurrences tfoot browser display tfoot syntax