Create tables using HTML to organize your site neatly.
Tables are very easy to use and will make your site look more appealing to the eye, while organizing your site's content. Almost every site uses tables in some form.
Here is the most basic table.
<table>- lets the computer know there is a tablemy content
</td>- end a cell in the rowHere is a breakdown of some of the tags associated with the table tag. Of all of the tags below, you should get into the habit of always using the height and width tags, because they help your page load faster.
align- aligning an entire tableYou can create as many cells or rows in a table as you'd like. You can even combine a table into another table.
<table border="1" bordercolor="#000000" cellpadding="5">row 1, cell 1 | row 1, cell 2 | |
row 2, cell 1
|
row 2, cell 2 |
Want to take the double lined borders away? Just add style="border-collapse: collapse" to the table command.
<table border="1" bordercolor="#000000" cellpadding="5" style="border-collapse: collapse">row 1, cell 1 | row 1, cell 2 | |
row 2, cell 1
|
row 2, cell 2 |