5 ms·
Using tables is not a bad thing. I don't know how people came to this conclusion. gmail lists emails using tables. What's wrong with that?
by kqueue 16y ago
Using tables is not a bad thing. I don't know how people came to this conclusion.
gmail lists emails using tables. What's wrong with that?
- nikan 16y agoWell, it's not only tables: if you take a look at the html you will see also the center tag, deprecated attributes like align and valign, inline styling etc. Hacker News is very far from what is nowadays used for building (by hand or automatically) web pages. Yet, it works, so this might be the final answer.
- nailer 16y agoI don't think anyone is saying using tables at all is a bad thing, just using them inappropriately. gmail is a table - columns are email properties, rows are documents. HN is a list.
- nailer 16y agoI don't think anyone is saying using tables at all is a bad thing, just using them inappropriately. gmail is a table - columns are email properties, rows are documents. HN is a list. I believe PG argues a list is a smaller, single column version of table, and that nobody should care about the output of a compiler anyway. I'd argue that the HN header is a cell, so are the links at the bottom of the page, and this is clearly a case of tables for layout. Also there may be things that parse the page for different audiences, who expect lists to be used for lists and tables to be used for multi columned data. Also, it's not hard to fix. Reading the previous discussion, things got quite nasty last time, so I won't fan the flames and say anything more.
- karanbhangui 16y agoHere we go again. A preemptive note on semantic HTML: This is not a question of DIVs vs TABLEs. Those who litter DIVs everywhere are just as misguided. The idea of HTML is to meaningfully represent the content it's describing. Sometimes this means using tables (for tablular data), other times it involves wrapping elements in a div container. Now whether or not HN's front page is tabular data (my vote is not) is left to debate.
- alextgordon 16y agoHow is a table with one column not meaningful? The meaning is obvious: it's a list. That HTML has specialist elements for lists is nice, but I don't see how that implies that a table with one column isn't also appropriate for a list.
- karanbhangui 16y agoA table with one column may very well be appropriate, however that's not the case here. A table has been used for layout. You will notice the up-vote icon has its own cell for example. Not to mention, various deprecated style-related tags like center are used as well.