<?xml version="1.0" encoding="utf-8"?>

The table tag <table>

The table tag <table>

The <table> element comes in handy when arranging data in rows and columns. Table elements usually include several nested tags. The most common are the <tr> element to create rows, and the <td> element to create columns inside a row. You can also define a cell as a header for a group of table cells using the <th> element.

The correct table markup is especially important for assistive technology users — screen readers have a special mode for tabular content, allowing assistive technology users to skim information easily. Always use the <table> element for tabular data.

Improve your UX & Product skills with interactive courses that actually work