Chapter 11
Tables
11.2 Table Tags
A wide variety of tables can be created with only five tags: the
tag, which encapsulates a table and its elements in the HTML document's body content; the tag, which defines a table row; the and | tags, which define the table's headers and data cells; and the tag, which defines a title or caption for the table. Beyond these core tags, you may also define and control whole sections of tables, including adding running headers and footers, with the , , |
, , and tags. Each tag has one or more required and optional attributes, some of which affect not only the tag itself, but also related tags.
11.2.1 The Tag
The
end tag define and encapsulate a table within the body of your HTML document. Unless otherwise placed within the browser window by style sheet-, paragraph-, division-level, or other alignment options, the browser stops the current text flow, breaks the line, inserts the table beginning on a new line, and then restarts the text flow on a new line below the table.
Function:
Define a table
Attributes:
ALIGN ONCLICK
BACKGROUND
ONDBLCLICK
BGCOLOR ONKEYDOWN
BORDER ONKEYPRESS
BORDERCOLOR
ONKEYUP
BORDERCOLORDARK
ONMOUSEDOWN
BORDERCOLORLIGHT
ONMOUSEMOVE
CELLPADDING ONMOUSEOUT
HTML The Definitive Guide
You must be logged in to Read or Download
CONTINUE
SECURE VERIFIED