programming-examples/html/Table/table_header_and_footer.html

40 lines
753 B
HTML
Raw Permalink 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;}
thead {background-color: #99ccff; font-size: 1.4em;}
tfoot {font-size: 0.7em;}
</style>
</head>
<body>
<table>
<thead>
<tr>
<td colspan="2" style="text-align: center;">Merge rows and columns</td>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="2" style="text-algin: center;">W3C Working Draft 24 June 2010</td>
</tr>
</tfoot>
<tr>
<th>Attribute</th>
<th>Function</th>
</tr>
<tr>
<td><i>colspan</i></td>
<td>To merge columns</td>
</tr>
<tr>
<td><i>rowspan</i></td>
<td>To merge rows</td>
</tr>
</table>
</body>
</html>