Name

<caption> — NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3

Synopsis

                     <caption>...</caption>
                  

Provides a brief summary of the table’s contents or purpose. According to the W3C HTML 4.0 Specification, if used, the caption must immediately follow the <table> tag and precede all other tags. The width of the caption is determined by the width of the table. The caption’s position as displayed in the browser can be controlled with the align attribute (or valign in MSIE).

Attributes

align=top|bottom|left|right|center

Positions the caption relative to the table. This attribute has been deprecated by the W3C 4.0 Spec in favor of style sheet positioning.

summary= text

W3C 4.0 Specification only. Used to provide a longer description of the table’s contents that could be used by a speech- or Braille-based web browser.

valign=top|bottom

Internet Explorer 3.0 and higher only. Positions the caption above or below the table (top is the default).

Get Web Design in a Nutshell 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.