More Tables
We're going to look at a couple TABLE and TD attributes in this lesson.
First of all, let's take a look a CELLPADDING:
|
The stick figure shown to the right has several strands of hair. Can
you count them? |
Here's the exact same table without cellpadding specified:
|
The stick figure shown to the right has several strands of hair. Can
you count them? |
Examine the source code to see how cellpadding is used.
|
Next up we have BGCOLOR. Consider the following sample table:
Cell 01 |
Cell 02 |
Cell 03 |
Cell 04 |
Cell 05 |
Cell 06 |
Cell 07 |
Cell 08 |
Cell 09 |
ASSIGNMENT:
Create a 4x4 table according to the following specifications:
- Select a topic for your page and place a title at the top of your page
- Find four small images pertaining to your topic and place them in separate cells in column two
- Column one will be a name or label associated with the item in column two
- Columns three and four will be used for information pertaining to items in each row.
- Create a two-color checkerboard pattern using bgcolor in each TD
- Make sure you use font colors which contrast with cell background colors
Example topics include food, organisms, locations, substances, elements,
etc. For instance, if you decide to use REPTILES as your topic, you would
find images of four reptiles and put those images in column two. The names
of those reptiles would be included in column one. Column three might
include information about the color of the reptiles included in your table
and column four might be something about their favorite foods.
|