The HTML Elements reference.

"caption" - html element

  • The CAPTION element's text should describe the nature of the table.
  • The CAPTION element is only permitted immediately after the 'table' start tag.
  • Starttag <caption> is Required and endtag </caption> is Required
  • Browsers that support the caption - element : Internet Explorer Mozilla Firefox Opera Google Chrome Apple Safari
Element "caption" example:
<table   border='1'
cellpadding='0' cellspacing='0' >
<caption>Browser Accesskey usage  </caption>
    <th >Browser</th>
    <th >accesskey usage</th>
    <th >Remarks</th>
    <td align='center'  ><img src="../images/Firefox.png"
alt="" border="0"  title="Firefox"/></td>
    <td >Shift + Alt + accesskey</td>
    <td >Set the focus on the element and
execute any link (a) if exist.</td>
    <td align='center' ><img src="../images/IE.png"
alt="" border="0" title="Internet explorer" /></td>
    <td >Alt + accesskey</td>
    <td >Set the focus on the element.
Press enter to execute any link.</td>

align (deprecated), class , dir , id , lang , style , title

Attribute "align" value(s): depend on which element top, bottom, left or right
  • Specifies the horizontal alignment of its element with respect to the surrounding context. Specifies the position of the caption with respect to the table.
  • You should use styles (CSS) instead.
Possible attribute, align, values for this element:
Attribute value description
top The caption is at the top of the table. This is the default value.
bottom The caption is at the bottom of the table
left The caption is at the left of the table.
right The caption is at the right of the table.

© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.