Tables - Adam's HTML Planet - Tutorials and Tips on how to create websites using HTML
Tables
list of tutorials
next tutorial
Tables are one of the web designers most useful tools. Not only are they ideal for presenting information in a tabular form - ie figures and suchlike, but can - and are - used to lay content out on a page with precision. Whole pages can be made up of tables [which can be 'nested' one inside another] and when the border attributes are set to "0" no-one would ever know [unless they knew how to look - see my 'tricks of the trade' pages]
Open the file images.htm in your text editor
Add the content indicated below - underneath the bit where you inserted the graphics
These tags open and close the table. The <TABLE> tag can contain many attributes including border colour and size, alignment options and background attributes. For more detail see my taglist page. Our example border is set to "1" to make the table visible - setting it to "0" would make the borders invisible
<TR> </TR>
These tags open and close each table row. Again, these can contain attributes regarding alignment and background etc.
<TD> </TD>
These open and close each cell and create the columns of the table. The TD I take to stand for table data - but no-one seems to be quite sure of their origin. As with the other table tags the TD tag can have several attributes.
Go up to the top of the page to choose where you go next