Basic HTML version of Foils prepared 11 May 1997

Foil 30 What's Inside a Table

From Introduction to HTML--ECS400 fall 97 ECS400 Senior Undergraduate Course -- Spring Semester 97. by Nancy J. McCracken *

Within the table tags can be a caption tag and some number of row tags.
  • <caption> . . . </caption> Other html tags can be used inside these tags to format the caption text. The <caption> tag has an ALIGN=top|bottom attribute to say where to place the caption.
  • <tr> . . . </tr> Within each pair of row tags will be all the cell tags of that row. The <tr> tag can have ALIGN and VALIGN attributes as described below to specify allignment for all cells in that row.
Within the row tags are any number of cell and header tag pairs. If the rows of a table don't have the same number of cells, they will be padded with blank cells to the length of the longest row.
  • <td> . . . </td> Within these tags is the contents of an individual cell (table data). Other html tags can be used to to make text, images, links, etc.
  • <th> . . . </th> Header cells are just like data cells, except that the text is bold face and centered.
Attributes to align contents of cells
  • ALIGN=left|center|right
  • VALIGN=top|middle|bottom|baseline



© 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 Tue Aug 26 1997