Table TagsThe current HTML standard allows the creation of tables. Most of the tags used to create tables have several attributes, and the attributes are listed with the description of the tags themselves.
Example:
Table CaptionsThe CAPTION tag is used within the TABLE tag to add a caption to the table. Its only attribute, ALIGN determines the location of the caption, which can be either TOP or BOTTOM. The Table TagThe TABLE tag creates the table. The ALIGN attribute can be either LEFT, CENTER or RIGHT, which determines the alignment of the table. The value of BORDER attribute controls the pixel width of the table cell borders. CELLPADDING and CELLSPACING control the spacing in pixels within and between cells, respectively. Finally, the WIDTH attribute determines the width of the table, similar in use to the corresponding attribute in the HR tag.
Table cellsBoth the TD and TH tags create table cells. They both must be contained within the TR tag. While the TD tag is used to create cells containing table data, the TH tag is used to create header cells for the table, which are typically displayed in boldface. Both of these tags use the same set of attributes, which are explained below.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||