Skip to content
HTML.ONE
Home HTML Elements

HTML <table> Element

Represents tabular data. Use captions and correctly scoped headers, not tables for layout.

Example

<table><caption>Prices</caption><thead><tr><th scope="col">Item</th><th scope="col">Price</th></tr></thead><tbody><tr><td>Book</td><td>$10</td></tr></tbody></table>

Further reference

HTML Living Standard

Live preview