RIT Home

Directories

Info Center/SIS

RIT Library home page RIT home page RIT institute directory RIT Student Information Service RIT Libraries Wallace Library Cary Collection RIT Archives

Basic Table Tags

<TABLE>...</TABLE>

Surrounds all other table tags

<TR>...</TR> Table Row surrounds all TD cell tags in the same row

<TD>...</TD> Table Data cell creates a data cell within a row.


For example: A basic 2x2 table
A B
C D

Note: The border tag with table makes the table visible. Without it the borders disappear.


<table border>

	<tr>

		<td>A</td> <td>B</td> 

	</tr>

	<tr>

		<td>C</td> <td>D</td> <td>

	</tr>

</table>


What can go inside a table data cell? <TD> ...<TD>

  • text
  • image tag
  • linking tag (A HREF)
  • Headings
  • formatting tags (i.e. bold)
  • color tags
  • HR
  • BR or P tags
  • lists
  • another table.
  • Spacing tags such as <SPACER Type=Horizontal Size="10">
  • <SPACER Type=Vertical Size="SpaceInPixels">
Experiment with other tags.


Optional Table Tags

<TH>...</TH> Used within the first TR tags of a table as headings. Text within them will be bold.

<CAPTION>...</CAPTION> Used after the first Table tag, before any TR tag. Places a caption or table title within the table.

See additional examples in Netscape Sampler exercises.


Return to Tables and Frames Tutorial
Maintained by: Joseph Gawlowicz, jagwml@rit.edu (page updated: 2/2002)
 
RIT Libraries
©2003, Rochester Institute of Technology
90 Lomb Memorial Dr. Rochester, NY 14623 585-475-2562
Questions/Comments? | Terms of Use | Copyright Infringement
Page last updated:  Thursday, 14-Nov-2002 14:15:06 EST