role="presentation" on email tables
- type
- attribute, on a layout <table>
- applies to
- any table used for layout instead of data
- screen reader effect
- skips announcing it as a table at all
- common values
- role="presentation"
Where it goes
On every layout <table> in an email — the outer centering table, inner content tables, button tables, all of them.
Example
<table role="presentation" width="600" cellpadding="0" cellspacing="0">
<tr><td>Content</td></tr>
</table>Open this example in the editor →
Common mistakes
- Leaving it off a layout table — a screen reader user hears "table, 1 column, 1 row" for every purely cosmetic wrapper in the email, which adds up fast.
- Adding it to an actual data table (like a real order summary with rows/columns that matter) — that hides real structure a screen reader user needs.