HTML Tutorials

Tables

table.html
<html>
<head>
<title>Table</title>
</head>
<body bgcolor="#f0f0f0">
<p>Table</p>
<p>tr = table row<br />
td = table cell<br />
cellpadding = space between the border of the cell and the content inside the cell; <br />
cellspacing = space between the cells in the table</p>
<p>Table One</p>
<table width="800" border="1" cellpadding="10" cellspacing="5" bordercolor="#FF9900" bgcolor="#FFFFFF">
<tr>
<td width="200" bgcolor="#FFCC00">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</td>
<td valign="bottom" align="right" bgcolor="#CCCCCC">content (cell 2)</td>
</tr>
</table>
<p>Table Two</p>
<table width="800" border="0" cellpadding="10" cellspacing="5">
<tr>
<td width="200" bgcolor="#FFCC00">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</td>
<td bgcolor="#CCCCCC" align="center">content (cell 2)</td>
</tr>
</table>
</body>
</html>
Tables

Table One

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. content (cell 2)

Table Two

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. content (cell 2)
HTML
Other Tutorials