DEV Community

Discussion on: How to make a table without using the HTML table elements

thesdev profile image
Samir Saeedi

If you don't like the way browsers render tables by default, you can always change their display css property, so you can retain the semantics.

kungtotte profile image
Thomas Landin

Seconded! If you're putting a table on your page, use <table> tags. Going out of your way to avoid tables is just as bad as using tables for layout. Something we stopped doing 20 years ago...

ghost profile image
Ghost • Edited on

Thirded! HTML5 has semantic meanings. This is just a hair better than styling a DIV, giving it a click-handler and turning it into a button instead of actually using a <button>