Caption tag in HTML Tables - How to give a title for a table in HTML


<Caption> tag in HTML Tables - How to give a title for a table in HTML

The Caption Tag is used to give a title to a Table in HTML. It defines the caption of a table by defining text between <caption></caption> tags.

Example:-

<table>
<caption>Student Info</caption>
<tr>
<th>Roll No.</th>
<th>Name</th>
<th>Course</th>
<th>Address</th>
</tr>
<tr>
<td>1001</td>
<td>Talib</td>
<td>MCA</td>
<td>Undefined</td>
</tr>
</table>

{ 0 comments... read them below or add one }

Post a Comment