'caption' Example : caption « HTML Tag Reference « HTML CSS Reference






'caption' Example

    
<html><head><title>caption element example</title></head>
<body>
   <center>
       <table id="myTable" 
              width="200" 
              border="8" 
              cellspacing="5" 
              cellpadding="5" 
              align="center">
          <caption id="myCaption" valign="bottom" style="color:red">
             Table 1-1. This is the caption for this table.
          </caption>
          <tr>
              <td>Cell 1</td>
              <td>Cell 2</td>
          </tr>
          <tr>
              <td>Cell 3</td>
              <td>Cell 4</td>
          </tr>
       </table>
   </center>
</body>
</html>
           
      
      








Related examples in the same category

1.'caption' Syntax and Note
2.'caption' HTML Attributes
3.'caption' Event Handlers
4.'caption' CSS Attributes and JavaScript Style Properties
5.'caption' Microsoft Behaviors
6.'caption' Microsoft Filters
7.'caption' JavaScript Properties
8.'caption' JavaScript Methods
9.'caption' JavaScript Collections
10.'caption' JavaScript Objects