programming-examples/html/Basics/Sets the padding of table cells - The cellpadding attribute.html

20 lines
601 B
HTML
Raw Permalink Normal View History

2019-11-18 14:44:36 +01:00
<!DOCTYPE html>
<html subLang="en">
<head>
<title>Example of HTML table cellpadding</title>
</head>
<body>
<table border="1" cellpadding="10">
<caption>User Information</caption>
<tr>
<th>Name</th>
<th>Email</th>
</tr>
<tr>
<td>John</td>
<td>john@mail.com</td>
</tr>
</table>
<p><strong>Note:</strong> The CSS <code><a href="#" target="_top">padding</a></code> property is the better way to control paddings of table cells.</p>
</body>
</html>