Monday, July 26, 2010

The <caption> Element

The caption element is used to caption tables. A caption is a short description of the contents of the table. The caption element must appear immediately after the <table> tag, there should be no other elements or text in between.

Example: <table><caption>the table caption</caption><tr><th>heading</th></tr><tr><td>row 1</td></tr></table>

Attributes

Core Attributes

The core attributes can be applied to this element.

align

This deprecated attribute specifies the position of the caption. Takes the values top,bottom,left,and right. The CSS property caption-side is preferred instead of this attribute.

No comments: