Ensure layout tables do not use data table elements

Tables used for layout purposes shouldn't include data elements: th element, caption element or summary attribute. Lighthouse reports when layout <table> elements use <th>, <caption>, or summary.

How to fix this problem

It's simple to pass the Lighthouse audit: remove data elements (th, caption elements or the summary attribute) from layout tables.

If using a table just for visual layout, and not for tabular data, the better fix is to remove the table all together, and use cascading style sheets (CSS) to control layout instead.

Learn more in Layout tables must not use data table elements.

More information

Last updated: Improve article