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 Internet Explorer).
Attributes
align=top|bottom|left|right|centerPositions the caption relative to the table. This attribute has been deprecated by the W3C HTML 4.0 Specification in favor of style sheet positioning.
summary=textW3C HTML 4.0 Specification only. Used to provide a longer description of the table’s contents for use by a speech- or Braille-based web browser.
valign=top|bottomInternet Explorer 3.0 and higher only. Positions the caption above or below the table (top is the default).
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access