Step 4: Add background color to cells

Table cells with background color

Now it’s time to add color to the layout. We’ll do it the old-fashioned way, with an HTML attribute instead of CSS.

Add bgcolor="#666699" to the appropriate TD elements.

You may choose another color if you like. Read more about color.

Now add valign="top" to TD elements if you want text to “float to the top” of the cell. (The other possible values are "middle" and "bottom".)

Previous Home Next

Site hosted by Angelfire.com: Build your free website today!