Tables provide the simplest method of building an online catalog in HTML. A three-column table gives you room for a product image, description and shipping/ordering information. Inserting information into tables reduces the amount of time required to justify text. In addition, tables give you control of the white space surrounding the information on your page to enhance the appearance and clarity of your website.
Define a table with a one-pixel border using the opening
Video of the Day
Insert the first row of cells and their contents with this code:
Insert the second row of cells and their contents with this code:
Close the table with the ending tag:
This simple example produces a table with two rows and three columns. The first column displays a 60-by-60 pixel image of the product using the tag. The second and third columns display product description and stock information. Note that each row starts and ends with the
Insert the cellpadding command immediately after the border specification in the table definition to increase the amount of white space between the table’s borders and your content. For example,