![]() |
|
Some tables may benefit from a caption that explains the contents of a table. You can add a caption to a table by using the <caption> tag. For example: <table border="1"> <caption>A list of fruit and vegetables</caption> <tr> .. </table> By default, the browser centres the caption above the table, but you can use the align attribute to place the caption at the top, bottom, left or right of the table. Internet Explorer seems to work OK but Netscape doesn't support either left or right alignment. Note, thought, that if you set align to left or right, the caption always appears at the top of the table. You must then use the valign attribute to put the caption at the top or bottom of the table. Again, Netscape doesn’t support the valign attribute. |
More information Adding a background pictures to a table Adding captions to a table |