w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



thead nested within elements, elements nested within thead

Classified as: -

Parents, thead

Children, thead

Examples: thead parents, thead 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>
<colgroup span="2">
<thead><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
<!doctype html>
<html>
<head>
<title>...</title>
</head>
<body>

<table>
<thead>
<tr>...</tr>
<tr>...</tr>
</thead>
<tfoot>
<tbody>
</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>
<thead>...
</head>
<body>

<thead>...
<p>
<thead></td>...
</p>

</body>
</html>

Syntax 1: Valid, thead nested within table: allowed; tr nested within thead: allowed (thead ending tag absent and optional)
Syntax 2: Valid, thead nested within table: allowed; tr nested within thead: allowed
Syntax 3: Invalid, thead nested within elements(head, body, p) other than table: not allowed

thead intro thead optional, occurrences thead browser display thead syntax