Name
<TABLE> — NN all IE all HTML 3.2
Synopsis
<TABLE>...</TABLE>
End Tag: Required
The TABLE
element is a container for additional elements that specify the
content for a table. A table consists of rows and columns of content.
Other elements related to the TABLE
element are
CAPTION
, COL
,
COLGROUP
, TBODY
,
TD
, TFOOT
,
TH
, THEAD
, and
TR
. The purpose of the TABLE
element is to define a number of visible attributes that apply to the
entire table, regardless of the number of rows or columns within it.
Many of these attributes can be overridden for a given row, column,
or cell. The number of rows and columns is strictly a factor of the
structure of TR
and TD
elements
within the table.
Tables have been used for a relatively long time not only to organize rows and columns of content but also to position content. With no visible borders, table rows and columns can be set to empty space. With the advent of positionable content, the tables-for-positioning practice is not encouraged.
Example
<TABLE COLS=3> <THEAD> <TR> <TH>Time<TH>Event<TH>Location </TR> </THEAD> <TBODY> <TR> <TD>7:30am-5:00pm<TD>Registration Open<TD>Main Lobby </TR> <TR> <TD>9:00am-12:00pm<TD>Keynote Speakers<TD>Cypress Room </TR> </TBODY> </TABLE>
Object Model Reference
- IE
[window.]document.all.elementID
Attributes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.