4 ms·
The problem I see with using tables for layout is that it fucks up the semantic meaning of the html file. But that was an issue of philosophy that got trumped
by atoav 3y ago
The problem I see with using tables for layout is that it fucks up the semantic meaning of the html file.
But that was an issue of philosophy that got trumped by practical needs.
However, nowadays we have css grids with template areas. So we can just write our HTML semantically correct as if it was more or less just about the content (as it should be IMHO) and still move things around using CSS depending on the type of device, size of screen, media used.
So the holy grail in my opinion is to write HTML that contains only content and metadata and next to no elements or attributes that are needed purely for semantically irrelevant layout and styling purposes — and then do all the layout and styling in CSS. Styling tags like <em> or the occasional <section class="notice"> are okay, one should never be too strict with such ideals.
The advantage here is that this provides the maximum decoupling between the content and the layout/styling which not only helps with future layout updates, but improves the accessability of the page.
- AlecSchueler 3y ago> But that was an issue of philosophy that got trumped by practical needs Also very real issues like accessibility.
- matsemann 3y agoOne thing I also seem to remember from the very old days, was that browsers wouldn't render the table until it was completely downloaded. So if your whole content was in a table, there would be nothing to see until the whole page was loaded and it could do the layout. But without tables you would see parts pop in as it was loaded.
- AlecSchueler 3y agoI'm not sure what you're trying to imply acuut the accessibility of tables here.
- naasking 3y ago> The problem I see with using tables for layout is that it fucks up the semantic meaning of the html file. I think the real problem is that it doesn't permit responsive layouts for different screen sizes and orientations.