htmlasp.nethtml-tablecaption

How would it be possible to add a caption to the bottom of a table?


I have a table which has a caption which appears on top of the table.

I'd need another caption to appear at the bottom of the table. how would it be possible?

<table>
    <caption>My Table - Start</caption>
    <tbody></tbody>
    <tfooter></tfooter>
    <caption>My Table - End</caption>
</table>

Solution

  • You could mock one by doing the following, and applying some CSS

    <table>
      <caption class="cap">some caption text</caption>
      <tr>
        <td>cell 1</td><td>cell 2</td><td>cell3</td>
      </tr>
      <tr>
        <td>cell 1</td><td>cell 2</td><td>cell3</td>
      </tr>
      <tr>
        <td>cell 1</td><td>cell 2</td><td>cell3</td>
      </tr>
      <tr>
        <td colspan="3" class="cap foot">
            This is pretty much a footer caption.
        </td>
      </tr>
    </table>
    

    Here's an example