w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



tr ... ⁄tr syntax

Syntax tr

Examples tr syntax

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>
<tbody>
<tr>...
<tr>...
</tbody>
</table>

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

</body>
</html>
Valid Syntax 3
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>
<tbody>
<tr>...</tr>
</tbody>
</table>

</body>
</html>

Video demonstration tr element, syntax

HTML5 tr element, syntax Tutorial

min video details
00:04 video tutorial: tr element, syntax
00:11 adding tr element in page
00:15 tr element has:

- a start tag: <tr>
- and an end tag: <⁄tr>
00:21 <⁄tr> end tag may be omitted when tr element is immediately followed by another tr element, like this:
00:27 <⁄tr> end tag may be omitted if there is no more content in the parent element (e.g. inside tbody in this case)
tr intro tr optional, occurrences tr browser display tr parents - children