19 lines
611 B
HTML
19 lines
611 B
HTML
<!DOCTYPE html>
|
|
<html subLang="en">
|
|
<head>
|
|
<title>Example of setting HTML table dimensions</title>
|
|
</head>
|
|
<body>
|
|
<table border="1" width="400" height="100">
|
|
<tr>
|
|
<td>row 1, cell 1</td>
|
|
<td>row 1, cell 2</td>
|
|
</tr>
|
|
<tr>
|
|
<td>row 2, cell 1</td>
|
|
<td>row 2, cell 2</td>
|
|
</tr>
|
|
</table>
|
|
<p><strong>Note:</strong> The CSS <code><a href="#">width</a></code> and <code><a href="#">height</a></code> property is the better way to set dimensions of a table.</p>
|
|
</body>
|
|
</html> |