Making a Table:
Tables are
a great way of dividing information on a page.
It's best to have some idea of what kinds of tables you will need
and how you are dividing your page before you start.
Dividing your site up into smaller tables instead of a large table
will make it load faster
Needs a closing tag.
Tables have rows that are horizontal and columns running vertically.
This table has 3 columns and two rows:
column column column
cell | cell | cell |
cell | cell | cell |
row
row
To insert a table use the <table>
tag followed by <tr> tags for rows and <td>
tabs for data in cells. The <td> tags create columns. The more you use,
the more columns you have.
The border attribute of the <table>
tag controls the size of the table border. <table border="n"><tr><td>something</td></tr></table>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Pony Pony Pony</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table border="3">
<tr>
<td> <img src="pony.gif" /></td>
</tr>
<tr>
<td>Here is a picture of my pony in a table.</td>
</tr>
</table>
</body>
</html>