Never use tables for layout

I'm gonna say it again. Never use tables for layout. I'm dead serious. Never do it.

If you come from the pre-HTML 5 era, you probably used to organize the elements of your page with tables because it was the norm. But using tables for something else that presenting data is a catastrophic thing for accessibility. When a screen reader meets a table, the screen readers tells him he's entering a table, so the user thinks he's going to hear about data organized in row and columns.

Also using tables makes your HTML super verbose, hard to read and hard to debug. They are way simpler solutions to do what most people try to do with tables.

Next: The display property

Initially published: November 23rd, 2020
Generated: November 12th, 2021