An html table (within <table> and </table>) consists of a number of rows, each of which has a number of cells. Formatting with tables on a Web page provides a good way to place and align images and text.
Attributes for the table tag
  • CELLSPACING=value - the amount of space between individual cells
  • CELLPADDING=value - the amount of space between the border of a cell and the contents of the cell
  • BORDER to specify there should be a line around the table and inbetween the cells, or BORDER=value to give the width of the border.
  • WIDTH=value|percent - allows you to describe the desired width in pixels or as a percentage of the document width.

See also color IMAGE Foil 29 Formatting Tables

From Preparing Web Pages - HTML Presentation: Preparing Web Pages with HTML -- Fall Semester 96. by Nancy McCracken-Foils prepared December 5 1996


Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Fri Dec 6 1996