Table Element in HTML
Chapter - 6 : Inserting Table in Web Page (Table Element in HTML): (Page 3/3)
(Cotinued from previous page)
v)Table Caption: A table caption can also be defined just after the <table> tag. The same will be displayed above the Table.
Command: <table border='single'>
<caption>Table Heading</caption>
<tr><td>your text</td>
<td>your text</td></tr>
<tr><td>your text</td>
<td>your text</td></tr>
</table>
Output: Table Heading
vi)Table Color: You can even define the color of table by the style command.
style='color:Table Element in HTML0000FF;' written within 'table' tag.
Command: <table border='double' style='color:blue;'>
<caption>Table Heading</caption>
<tr><td>your text</td>
<td>your text</td></tr>
<tr><td>your text</td>
<td>your text</td></tr>
</table>
Output: Table Heading

©
funandhobby.com (Table Element in HTML)