TYPE THE DOCUMENT TITLE
70
PURPOSE Used to define a table.
*** Attributes *** align" left, center, right
- specifies the horizontal alignment of the table. border"
- specifies the thickness of the table border in pixels represented by #. 0 = no border 1 =
default the higher the number, the thicker the border. cellpadding="#"
- specifies the thickness of the area inside the contents of a cell in pixels represented by #; the higher the number, the thicker the area. cellspacing="#"
- specifies the thickness of the area outside the contents of a cell in pixels represented by #; the higher the number, the thicker the area. width"
- specifies the width of the table in pixels represented by #. Use pixel values such as width" or use percentage values such as width. Percentages are based on the screen resolution of the visitor's display. bgcolor="#hexValue"
- specifies the color of the background of the table must use hexadecimal HTML color values as usual. background="imageURL" - specifies an image to be used as the background of the table image must be present in current directory as usual unless full path of image is provided. The following tags must be placed within
the beginning and closing tag in order for them to be associated with the table. Tables are defined with the
tag. A table is divided into rows with the tag, and each row is divided into data cells (with the tag. The letters td stands for "table data" which is the content of a data cell. A data cell can contain text, images, lists, paragraphs, forms, horizontal rules, tables, etc.
TYPE THE DOCUMENT TITLE 71
row 1, cell 1 |
row 1, cell 2 |
row 2, cell 1 |
row 2, cell 2 |
How it looks in a browser row 1, cell 1 row 1, cell 2 row 2, cell 1 row 2, cell 2
|