4 ms·
Here 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
by karanbhangui 16y ago
Here 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.