Name

<CAPTION> — NN all IE all HTML 3.2

Synopsis

<CAPTION>...</CAPTION>

End Tag: Required

A CAPTION element may be placed only inside a TABLE element (and immediately after the <TABLE> start tag) to denote the text to be used as a caption for the table. A caption applies to the entire table, whereas a table heading (TH element) applies to a single column or row of the table. Only one CAPTION element is recognized within a TABLE element.

A table caption is usually a brief description of the table. A longer description may be written for the SUMMARY attribute of a TABLE element for browsers that use text-to-speech technology for users who cannot see browsers. The primary distinguishing attribute of the CAPTION element is ALIGN, which lets you define where the caption appears in relation to the actual table.

Example

<TABLE ...>
<CAPTION CLASS="tableCaptions">
    Table 3-2. Sample Inverse Framistan Values
</CAPTION>
...
</TABLE>

Object Model Reference

IE

[window.]document.all.elementID

Attributes

ALIGN

DIR

LANG

STYLE

VALIGN

CLASS

ID

LANGUAGE

TITLE

 

Event Handler Attributes

Handler

NN

IE

HTML

onAfterUpdate

n/a

4

n/a

onBeforeUpdate

n/a

4

n/a

onBlur

n/a

4

n/a

onClick

n/a

4

4

onDblClick

n/a

4

4

onDragStart

n/a

4

n/a

onFocus

n/a

4

n/a

onHelp

n/a

4

n/a

onKeyDown

n/a

4

4

onKeyPress

n/a

4

4

onKeyUp

n/a

4

4

onMouseDown

n/a

4

4

onMouseMove

n/a

4

4

onMouseOut

n/a

4

4

onMouseOver

n/a

4

4

onMouseUp

n/a

4

4

onResize ...

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.