Home » HTML » HTML Tables » Question
  1. For adding caption to the table we use ____________.
    1. <th>
    2. <tr>
    3. <caption>
    4. <thead>
    5. None of these
Correct Option: C

For adding caption to the table we use <caption> tag. It should be used just below the <table> tag.Syntax is


<table>
<caption> Savings </caption>
<tr> <th> saving </th><th>loss</th> </tr> <tr><td>$12</td>$45<td></td> </tr>
</table>.

<thead> tag contains the group of header. <tr> is used to indicate start of every row i.e. it stands for table row. The header information is present in <th> tag.



Your comments will be displayed only after manual approval.