HTML Table
HTML Table
To make a cell span more than one column, use the colspan attribute:
Example:
<html> <th rowspan="2">Telephone:</th>
<head> <td>87000</td>
<style> </tr>
table, th, td { <tr>
border: 1px solid black; <td>87000</td>
border-collapse: collapse; </tr>
} </table>
th, td {
padding: 5px; </body>
text-align: left; </html>
}
</style>
</head>
<body>
Output:
<table style="width:100%">
<tr>
<th>Name:</th>
<td>Jollibee</td>
</tr>
<tr>
Output:
Output: