programming-examples/html/Basics/Setting the dimension of a table.html

19 lines
611 B
HTML
Raw Permalink Normal View History

2019-11-18 14:44:36 +01:00
<!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>