programming-examples/html/Table/table_column_group.html

34 lines
510 B
HTML
Raw Normal View History

2019-11-15 12:59:38 +01:00
<!DOCTYPE html>
<html>
<head>
<title>Html5</title>
<meta charset="UTF-8">
<style type="text/css">
table {width: 250px;border: 1px solid black;
border-collapse: collapse;}
td {border: 1px solid black;}
colgroup {background-color: #99ccff;
text-align: center;}
</style>
</head>
<body>
<table>
<colgroup span="2"></colgroup>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>4</td>
<td>5</td>
<td>6</td>
</tr>
<tr>
<td>7</td>
<td>8</td>
<td>9</td>
</tr>
</table>
</body>
</html>