HTML

Topic: Tables

How can you provide heading to a table?

The <caption> tag inside the <table. tag is used to provide caption to the table.Example:<html><body><table border="1">  <caption>Monthly Savings</caption>  <tr>    <th>Month</th>    <th>Savings</th>  </tr>  <tr>    <td>August</td>    <td>1000</td>  </tr>  <tr>    <td>September</td>    <td>500</td>  </tr></table></body>

Browse random answers: