Main Page * Websites Help * PHP Newsletter * Internet Style * Who is she?
HTML Tip: Basic Tables
Trying out Tables
For many website creators, the very word "tables" sends shudders down their spine. But basic tables don't have to be complex. You can do a lot of neat things with the simplest tables commands.
  One of the first things you can do is use tables to keep photos and captions together. By enclosing both the graphic and the caption within two different rows of the same simple table, you can keep the two nicely linked on your home page. Check out this example:
  Here's the code for a simple table <TABLE BORDER=5><TR><TD><IMG SRC="images/stamp02.jpg" WIDTH=85 HEIGHT=134 ALT="carousel stamp"></TD></TR><TR><TD>my favourite stamp</TD></TR></TABLE>

Now watch that code in action:
carousel stamp
my favourite stamp

Bonus: You can get rid of that border if you don't like it. All you have to do is change the BORDER= declaration to 0 in the initial <TABLE> command (e.g. <TABLE BORDER=0>). Enjoy! Check out my Tip Archive for other handy hints.

Created by Ancarett. Updated 28 June, 2001.