<TH> cell contents </TH> first cell in row 1 (a head)
<TH> cell contents </TH> last cell in row 1 (a head)
</TR> end of first row definition
<TR> start of second row definition
<TD> cell contents </TD> first cell in row 2
<TD> cell contents </TD> last cell in row 2
</TR> end of second row definition
<TR> start of last row definition
<TD> cell contents </TD> first cell in last row ...
<TD> cell contents </TD> last cell in last row
</TR> end of last row definition
</TABLE> end of table definition
tags must surround the entire table definition. The first item inside the table is the
, which is optional. Then you can have any number of rows defined by the
Within a row you can have any number of cells defined by the
tags. Each row
of a table is, essentially, formatted independently of the rows above and below it. This lets you easily display
tables like the one above with a single cell, such as Table Attributes, spanning columns of the table.
Tables for Nontabular Information
Some HTML authors use tables to present nontabular information. For example, because links can be included
in table cells, some authors use a table with no borders to create "one" image from separate images. Browsers
that can display tables properly show the various images seamlessly, making the created image seem like an
image map (one image with hyperlinked quadrants).
Using table borders with images can create an impressive display as well. Experiment and see what you like.
Web forms let a reader return information to a Web server for some action. For example, suppose you collect
names and email addresses so you can email some information to people who request it. For each person who
enters his or her name and address, you need some information to be sent and the respondent's particulars
added to a data base.
This processing of incoming data is usually handled by a script or program written in Perl or another language
that manipulates text, files, and information. If you cannot write a program or script for your incoming
information, you need to find someone who can do this for you.
The forms themselves are not hard to code. They follow the same constructs as other HTML tags. What could
be difficult is the program or script that takes the information submitted in a form and processes it. Because of
the need for specialized scripts to handle the incoming form information, fill-out forms are not discussed in this
primer. Check the Additional Online Reference section for more information.
Avoid Overlapping Tags
Consider this example of HTML:
<B>This is an example of <DFN>overlapping</B> HTML tags.</DFN>