Exercises

The first exercise you should do is open your editor, generate a table, then go into your source code and tweak the attributes given in these pages.

After that, you might want to try the exercises below. These are some tables that have various problems to repair. Save this file to your disk and go to work on the source code.


1. Too wide! Shrink this table to fit in this page. Then shrink your browser window and see if the table still fits. (WIDTH)

Snow white Once upon a time . . . in a great castle, a Prince's daughter grew up happy and contented, in spite of a jealous stepmother. She was very pretty, with blue eyes and long black hair. Her skin was delicate and fair, and so she was called Snow White. Everyone was quite sure she would become very beautiful. Though her stepmother was a wicked woman, she too was very beautiful, and the magic mirror told her this every day, whenever she asked it. "Mirror, mirror on the wall, who is the loveliest lady in the land?" The reply was always; "You are, your Majesty," until the dreadful day when she heard it say, "Snow White is the loveliest in the land."

Bonus: Get the contents of both columns to stick to the top of the column. (VALIGN)


2. Bo-ring! Create a borderless table to match the section headings on the left and text on the right. (BORDER, WIDTH, VALIGN)

Halcyon days     Once upon a time . . . in a great castle, a Prince's 
                 daughter grew up happy and contented, in spite of a 
                 jealous stepmother. 

The cause of     She was very pretty, with blue eyes and long black hair.
it all           Her skin was delicate and fair, and so she was called 
                 Snow White.   
Bonus: Add some color to your cells (BGCOLOR)

3. Doh! Give the table below an appropriate look (you know - like a checkerboard). (BORDER BGCOLOR CELLSPACING)

                   
  C H E C K E R S  
                   
      C A F E      
                   

Welcome to the web site for the Checkers Cafe, the finest cafe on the west side of the expressway but before you get to the mill. We are open more or less regular hours to serve your needs. Call ahead so we can warm up the gravy before you get here. Ring the Morrisons next door and ask for Momma.

Our specials are pretty special indeed! On Monday night, it's hamburgers. Tuesday lunch: meatloaf. Tuesday evening: Sloppy Joes! Wednesday lunch: Chili macaroni chuck wagon surprise. Wednesday dinner: Mexicali pasta salad. Thursday lunch: Huervos racheros with macaroni. Thursday night: Chef surprise! And on Friday, Saturday, and Sunday, it's our all you can eat corn chips bar featuring the Bottomless Tub of Dip.

Bonus: Make the table float to the right side of the screen (ALIGN)