Are HTML tables considered bad in 2016?

Staples

Diamond Member
Oct 28, 2001
4,952
119
106
I have not been big into web design for nearly 10 years. I used to use tables a lot then and everything worked well. Now looking at modern tutorials, everyone is trying to do everything with floating DIVs with complex CSS. As I have found out, this just makes things a lot more complicated than they should be for essentially the same result besides DIVs MAYBE scale better to smaller screens.

Are tables considered bad these days?

(on a side note, there are a lot of modern technologies such as javascript frameworks that I have the same complaint about).
 

purbeast0

No Lifer
Sep 13, 2001
52,855
5,727
126
depends what you are doing. if you're just displaying stuff in tabular format, nothing is wrong with them.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,250
3,845
75
http://rick.measham.id.au/200901/give-up-and-use-tables/ ;) Edit: NSFW language toward the end.

They're not deprecated, so they're not wrong per se. It's good to know multiple ways of doing things. Tables can be hard to contain to a certain size, and hard to format for small screens.
 
Last edited:

Maximilian

Lifer
Feb 8, 2004
12,603
9
81
I use them :$

Bootstrap has a bunch of classes that a table can use, "table-responsive", "table-bordered" etc. So I guess they're still relevant.
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
Tables are just fine for displaying tabular data.

Don't use a table for layout of content, as in don't create a table with one row and two columns to make a 'page with side navigation layout'.
 

KB

Diamond Member
Nov 8, 1999
5,396
383
126
Tables dont play well in "responsive" design. Responsive design is a style that looks good no matter the screen size or layout and tables are too rigid, requiring the same rows and columns no matter what the screen orientation. I use them sparingly, only when data is best shown tabular.
 

veri745

Golden Member
Oct 11, 2007
1,163
4
81
If you're actually displaying a table, and not just using a table for column layout, tables are fine.

If you're not concerned with your table being resizable and/or responsive to users of smaller screens (tablet/mobile) tables are fine.
 

clamum

Lifer
Feb 13, 2003
26,255
403
126
Like the others have said, it's fine for literal tabular data but it's not advisable to use for normal layouts (i.e. I want a nav column on each side of my main content so I'll use one big column and two smaller).

That being said I can agree that using <div> elements and CSS for layout can be a real pain in the ass, especially if you want or need to support all browsers. Honestly, if responsive web sites aren't really that big of a deal to you (and your users!) then go ahead with using tables for layout. No one's gonna sue ya.

If you don't mind learning something new, I'd suggest checking out Bootstrap. I've recently began using it for a new website and man it is really slick. There's a learning curve involved but it's not substantial, and it is a major framework that's gonna be around for awhile IMO. Hell, Visual Studio is bundled with it now (that's actually how I started using it). Bootstrap makes it much easier to make responsive websites and includes support for tables too, even.
 

fuzzybabybunny

Moderator<br>Digital & Video Cameras
Moderator
Jan 2, 2006
10,455
35
91
As others have mentioned, use tables for displaying tabular data, and responsive grid-based frameworks like Bootstrap for page layout.

Oh, and emails still need tables for layout.
 

Cogman

Lifer
Sep 19, 2000
10,277
125
106
Tables dont play well in "responsive" design. Responsive design is a style that looks good no matter the screen size or layout and tables are too rigid, requiring the same rows and columns no matter what the screen orientation. I use them sparingly, only when data is best shown tabular.

Pretty much this. They suck if you want your site to be mobile friendly (however, mobile design in general is pretty horrible for displaying lots of data).

Other than that, they have their place when it comes to tabular data.

If you find you need a table and you want to be mobile friendly, you need to rethink your design.