← BYTES
HTML·Intermediate·Ref: 2.2.6

Why is it generally considered bad practice to use a `<table>` element purely for visual page layout (rather than for genuinely tabular data)?

Have a question about this video? Mention reference 2.2.6 when you contact us.

a.Tables render more slowly than any other layout method in every browser
b.This practice was only a concern in HTML4 and is now fully acceptable in HTML5
c.Tables cannot contain any images or links inside their cells
d.It conflates visual presentation with semantic meaning, confusing screen readers (which announce it as a data table with rows/columns/headers) and making the markup both harder to maintain and inappropriate for responsive design, compared to CSS layout tools built for the purpose (Flexbox, Grid)
A <table> communicates 'this is structured, tabular data' to assistive technology, which announces row/column relationships to screen reader users -- using one purely to visually arrange unrelated page sections confuses that semantic signal, produces markup that's awkward to make responsive, and goes against the HTML principle of separating structure/meaning (HTML) from visual presentation (CSS).

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES226#HTML