Tables used for layout purposes shouldn't include data elements:
caption element or
Lighthouse reports when layout
<table> elements use
How to fix this problem
It's simple to pass the Lighthouse audit:
remove data elements (
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.