<table>

The table element represents tabular data arranged in rows and columns.

Since HTML 3.2 Spec ↗

Syntax

<table>...</table>

Examples

<table>
  <caption>Quarterly Sales</caption>
  <thead>
    <tr><th scope="col">Quarter</th><th scope="col">Revenue</th></tr>
  </thead>
  <tbody>
    <tr><td>Q1</td><td>$10k</td></tr>
  </tbody>
</table>
Output
Renders a captioned data grid with a header row and one data row.

Notes

Use <table> only for genuine tabular data, never for layout. Include <caption>, <thead>/<tbody>, and scope on <th> for accessibility.

Browser & runtime support

EnvironmentSince version
chrome 1.0
firefox 1.0
safari 1.0
edge 12

See also