Connected: An Internet Encyclopedia
4.6. Table Captions

Up: Connected: An Internet Encyclopedia
Up: Requests For Comments
Up: RFC 1942
Up: 4. A walk through the Table DTD
Prev: 4.5. The TABLE element
Next: 4.7. The COLGROUP Element

4.6. Table Captions

4.6. Table Captions

   <!ELEMENT caption - - (%text;)+>

   <!ENTITY % Caption "(top|bottom|left|right)">

   <!ATTLIST caption                  -- table caption --
           %attrs;                    -- id, lang, dir and class --
           align   %Caption; #IMPLIED -- relative to table --
           >

The optional CAPTION element is used to provide a caption for the table. Both start and end tags are required.

ID, CLASS, LANG and DIR
See earlier description of common attributes.

ALIGN
This may be used to control the placement of captions relative to the table. When present, the ALIGN attribute should have one of the values: TOP, BOTTOM, LEFT and RIGHT. It is recommended that the caption is made to fit within the width or height of the table as appropriate. The default position of the caption is deliberately unspecified.

Note the ALIGN attribute is overused in HTML, but is retained here for compatibility with currently deployed browsers.


Next: 4.7. The COLGROUP Element

Connected: An Internet Encyclopedia
4.6. Table Captions