Glubase - share your knowledge


All / Computers / Programming / HTML / XHTML





  • View Command

HTML / XHTML Reference

HTML / XHTML caption definition

Syntax

<caption> ... </caption>

Description

Caption defines a table caption.

Attributes

 

Attribute Description
align Align specifies the alignment of the caption. [ top | bottom | left | right ]

Align = [ top | bottom | left | right ]
Description: Align specifies the alignment of the caption.[ top | bottom | left | right ]

Example

[Try this example yourself]
<table>
    <caption>This is a caption</caption>
    <tbody>
        <tr>
            <td>Cell 1</td>
            <td>Cell 2</td>
        </tr>
    </tbody>
</table>

Output

This is a caption
Cell 1 Cell 2
  • Comments

No comments added.