HTML5 Tag: CAPTION

Defination

The caption element represents the title of the table that is its parent, if it has a parent and that is a table element.

Example
<table>
  <caption>Student Report Card</caption>
  <tr>
    <th>Name</th>
    <th>Marks</th>
  </tr>
  <tr>
    <td>Foo</td>
    <td>90</td>
  </tr>
</table>

Copyright @ 2024 DevelopNew. All Rights Reserved