|
A Table is a web page element that can be used to control the location
of web page content. For example, the text you are reading now is located at the very top
of a table. The text is located in one rectangular region of the table called a cell.
Notice that cells can be of varying lengths and heights. The content of each cell can be
any possible web page content, including other tables. View the source for this page in order to
see the HTML code used to generate this table. To create a table, use the container tags <TABLE> </TABLE> Of course, a table has many attributes. BORDER=5 would create a border around the outside of the table of width 5 pixels. CELLPADDING=10 creates a gap between cell content and cell borders of size 10 pixels. CELLSPACING=2 would make the walls between cells 2 pixels wide. HEIGHT=60% makes the table 60% the width of the window containing the table. Using 60 instead of 60% would make the height size 60 pixels. The height must exceed the total height of the table content. WIDTH=100% guarantees the table will span the entire width of the window containing the table. Rows of a table are created by using the <TR> and </TR> tags. Each row contains table data which is created between the <TD> and </TD> tags. The <TD> tag also has attributes that allow you to determine how the content of cells are displayed. The following link provides an example of a simple 3 row and 5 column table. The next link is to a more complicated 3 row and 5 column tablewith some examples of <TD> tag attributes. |
|||
| tables | tables |
a b l e s |
tables |
|---|---|---|---|
tablestables, tables, tables |
tables | ||