# Learning Resources

## Table Caption

The CAPTION element

The tag defines a table caption.

The tag must be inserted immediately after the

tag.

You can specify only one caption per table.

Attribute definitions

align = top|bottom|left|right [CI]
Deprecated. For visual user agents, this attribute specifies the position of the caption with respect to the table. Possible values:

top: The caption is at the top of the table. This is the default value.
bottom: The caption is at the bottom of the table.
left: The caption is at the left of the table.
right: The caption is at the right of the table.

Attributes defined elsewhere

id, class (document-wide identifiers)
lang (language information), dir (text direction)
title (element title)
style (inline style information )
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events )

When present, the CAPTION element's text should describe the nature of the table. The CAPTION element is only permitted immediately after the TABLE start tag. A TABLE element may only contain one CAPTION element.

Visual user agents allow sighted people to quickly grasp the structure of the table from the headings as well as the caption. A consequence of this is that captions will often be inadequate as a summary of the purpose and structure of the table from the perspective of people relying on non-visual user agents.

Authors should therefore take care to provide additional information summarizing the purpose and structure of the table using the summary attribute of the TABLE element. This is especially important for tables without captions. Examples below illustrate the use of the summary attribute.