HTML Caption Attribute

Every book you read has name through which you get an idea what the book same like books in website or blogs captions are employed to define and explain the table contents. The <CAPTION> tag is place right after the <TABLE> tag, the <CAPTION> tag should be always closed with the pair tag </CAPTION>. The table caption can be placed on top or bottom of the table with the help of align attribute.

 

   1:  <html>
   2:  <head>
   3:  <title>
   4:  Caption
   5:  </title>
   6:  </head>
   7:  <body>
   8:  <table border="1">
   9:  <caption align="bottom">
  10:  Social Netwoks list
  11:  </caption>
  12:  <tr>
  13:  <th>Rank</th>
  14:  <th>Social Networks</th>
  15:  </tr>
  16:  <tr>
  17:  <td>1</td>
  18:  <td>Facebook</td>
  19:  </tr>
  20:  <tr>
  21:  <td>2</td>
  22:  <td>My Space</td>
  23:  </tr>
  24:  </table>
  25:  </body>
  26:  </html>
 
  image 

Tags: , , , , ,

Author: Revo

Share This Post On

Submit a Comment

Your email address will not be published. Required fields are marked *

4 × 3 =

 

Pin It on Pinterest

Shares
Share This