w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



th ... ⁄th syntax

Syntax th

Examples th syntax

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

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

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

</body>
</html>

Video demonstration th element, syntax

HTML5 th element, syntax Tutorial

min video details
00:04 video tutorial: th element, syntax
00:10 adding th element in page
00:15 th element has:

- a start tag: <th>
- and an end tag: <⁄th>
00:22 <⁄th> end tag may be omitted when th element is immediately followed by another th or td element, like this:
00:28 <⁄th> end tag may be omitted if there is no more content inside the parent element: tr
th intro th optional, occurrences th browser display th parents - children th, td colspan, rowspan attributesth, td, headers attribute