Name
<TD> — NN all IE all HTML 3.2
Synopsis
<TD>...</TD>
End Tag: Optional
The TD
element is a container for content that is rendered inside one cell
of a TABLE
element. One cell is the intersection
of a column and row. Other elements related to the
TD
element are CAPTION
,
COL
, COLGROUP
,
TABLE
, TBODY
,
TFOOT
, TH
,
THEAD
, and TR
. In addition to
providing a wrapper for a cell’s content, the
TD
element defines a number of visible attributes
that apply to a single cell, often overriding similar attributes set
in lesser-nested elements in the table.
Four attributes—ABBR
,
AXIS
, HEADERS
, and
SCOPE
—have been added to the HTML 4.0
specification in anticipation of nonvisual browsers that will use
text-to-speech technology to describe content of an HTML page—a
kind of “verbal rendering.” Although these attributes are
briefly described here for the sake of completeness, there is much
more to their application in nonvisual browsers than is relevant in
this book on Dynamic HTML. Consult the HTML 4.0 recommendation for
more details.
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.