Most Powerful Open Source ERP

Guideline Table Has Caption Defined After Tbody Tag

Normally it should be a the top.
  • Last Update:2017-04-10
  • Version:001
  • Language:en

Table Has Caption Defined After Tbody Tag

To add formatted captions to tables and add them to the overview of tables in a document, the table caption element will be used. Note that the caption element must be at the bottom of the table to be presented correctly.

Good Example:

<table>
  <thead>
      <tbody>
          <tr>
              <td></td>
          </tr>
      </tbody>
  </thead>
  <caption>This is an empty table</caption>
</table>

Bad Example:

<table>
  <caption>THIS CAPTION IS AT THE WRONG POSITION</caption>
  <thead>
      <tbody>
          <tr>
              <td></td>
          </tr>
      </tbody>
  </thead>
</table>

Captions will automatically be numbered and added to the overview of figures (images) and tables of a text document.