On this page
<table>
Prev: `<video>` | Up: media | Next: `<svg>`
Rel: media, Tables & Media Guide
Ref: MDN Web Docs — <table>
Tags: #public #web #html #elements #media #tier/core
Summary
Tabular data grid with explicit row/column headers (<th scope="col|row">).
- Implicit ARIA Role:
table - DOM Interface:
HTMLTableElement - Key Attributes:
(caption, thead, tbody, th, td)
Notes & Best Practices
- Use
<caption>,<thead>,<tbody>, and<th scope="col|row">for accessible tabular data—never use<table>for page layout.
Example
<table>
<caption>Release Metrics</caption>
<thead><tr><th scope="col">Version</th><th scope="col">Size</th></tr></thead>
<tbody><tr><th scope="row">v1.0</th><td>42 KB</td></tr></tbody>
</table>
Linked from
Related notes
- tuts/html/elements/media/svg Linked here; links to this page; shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media/video Linked here; links to this page; shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media Linked here; links to this page; shared tags: #elements, #html, #media, #web
- tuts/html/elements/tables_and_media Linked here; shared tags: #elements, #html, #media, #web
- tuts/html/elements/media/canvas shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media/figure shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media/img shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media/marquee shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media/picture shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/forms/button shared tags: #elements, #html, #tier, #web