w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



tr ... ⁄tr, optional element ⁄occurrences

The tr element is optional.
tr can be added once or multiple times within the table, thead, tbody, tfoot elements

Valid Syntax 1
tr absent; optional element
1
2
3
4
5
6
7
8
9
<!doctype html>
<html>
<head>
<title>...</title>
</head>
<body>

</body>
</html>
Valid Syntax 2
multiple tr elements present within thead, tfoot, tbody
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!doctype html>
<html>
<head>
<title>...</title>
</head>
<body>

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

</body>
</html>
Valid Syntax 3
multiple tr elements present within table
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>
<thead>..</thead>
<tr><td>...<td>...</tr>
<tr>...</tr>
<tr>...</tr>
</table>

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