w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



colgroup ... ⁄colgroup, optional element

The colgroup element is optional

Examples syntax:

Valid Syntax
colgroup element present
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>
<tfoot>
<tbody>
</table>

</body>
</html>
Valid Syntax
colgroup element absent; optional element
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>
<thead>
<tfoot>
<tbody>
</table>

</body>
</html>
colgroup intro colgroup browser display colgroup parents - children colgroup syntaxcolgroup span attribute