I still use plain old tables in 2017. Number of unhappy customers: 0
I want to add a column to a table via ajax, how do I do it? I can't cleanly, I have to modify each tr.
91–100 of 280 posts
I still use plain old tables in 2017. Number of unhappy customers: 0
I want to add a column to a table via ajax, how do I do it? I can't cleanly, I have to modify each tr.
Earlier quoted context omitted.
Except anyone with accessibility requirements, no? As far as I know tables are horrible for anyone with a screen reader. Can you annotate tables somehow to work for accessibility purposes?
The problem with screen readers is summarized "Screen readers assume the content inside a table is tabular". Are divs better just because they are undefined? It seems to me that the problem would more easily be solved by adding some attributes to skip tabular treatment or to add captions, rather than ditching tables altogether. Table elements like could even be used to identify and access parts of the UI pages.
I'm curious to hear from screen reader users. I recall that the gap between "what web developers think screen readers do" and "what screen readers do" has always been sizable.
Earlier quoted context omitted.
Do you mean literal markup, or tables in CSS such as display: table Using CSS surely can improve the screen reader experience by the markup not being actual tables.
Screen readers haven't been confused by tables since about 1998.
http://caniuse.com/#search=grid
Maybe I sound like a broken record, but I still don't understand how layout can ever be a style. Why does an HTML -element not exist?
The nice thing about CSS is that you can ignore it in "article view" or mobile. You can't ignore HTML in the same way. Don't you see the value in splitting semantic and styling components of a page?
Earlier quoted context omitted.
It's not. There were a few arguments against "table layout", some of which apply to hn as well IMNHO. Added tags without semantic value (just as your div-soup above also illustrates). Layout speed (in reality not much of an issue now - and also an issue with deeply nested tags with complex layout). Both are fixed in modern html5 which moves (back) towards simple, semantic, document layout (html-body-article-heading-e…
I look forward to trying modern flexbox and grid layouts. I have not had the privilege (?) to work with either yet; our customers are not necessarily on the bleeding edge of browser releases so I have to stay a little behind the curve. Hence, a lot of div soup and ridiculous indentation levels. Honestly, for what I'm doing (a pretty complex web app with an almost desktop-style GUI with a bunch of buttons, text inputs…
> of course a div layout is at least partially semantic
That's contestable, nowadays is absolutely unpredictable, s are more semantic
Sometimes i wish HTML was like python hehe
Earlier quoted context omitted.
We had a simpler standard in 1995. It was called tables and it did this exceptionally well and more importantly was easy enough for even amateurs to understand. And then armchair demagogues decided that markup should no longer be used for markup, setting web layout back decades and creating the field of web designers whose major accomplishment was understanding stupid div hacks.
Your comment is the best example of the demagogue. Zero understanding of the issue, the problems that tables caused. But it was easy, right?
Or they say from the highest and mightiest and ivoryest pedestal "separation of semantics and display, thus spaketh the lord" pretending, of course, that modern websites look and behave just like documents when that's demonstrably false, and that tables are therefore irretrievably bad.
And instead you now have, 20 years later (TWENTY! YEARS!) something that only now works as well for layout.
Adding "not-data" and navigation directives to tables to aid screen readers and separate semantics would not have taken 20 years.
And now you'll have to wait another 5 years before this new, "just as good as tables!" feature is sufficiently widespread to actually deploy it without a polyfill shim.
But please tell me more about what I do or don't know.
Earlier quoted context omitted.
That's the problem. This argument was over a decade ago and it's because it's a nightmare to work in tag soup. I still have to deal with tables for layout on mail templates, bloody Outlook, and that extra 2 layers of tag nesting you have to do on every level quickly turns the code into an incomprehensible mess, even with careful indentation. And if you're not very careful with indentation it turns into an utter night…
That's a problem to be sure, but sometimes I wonder if this is much better:
Earlier quoted context omitted.
Because indicates that it contains tabular data, and implies lots of things about the content that it contains that would be misleading when using table-based layout. And display: table, which uses CSS to make things look the same, without implying anything about the content, wasn't supported by Microsoft, back when they they were a) the only browser that mattered, and b) trying to hold back the web to protect their…
Well the issue of semantics was not exactly solved by turning everything to s. It's still a mess, but a different mess. I would even say it's bad to have display:table-cell because it's reduntant.
I'm not claiming it's perfect, but it's like government data being released as a CSV vs a PDF with a scan of paper document. Structured data is better for lots of reasons, even if it's only minimally structured.
Earlier quoted context omitted.
While that would probably work fine for display and layout, but it doesn't work so well with the semantic document model that the web is built on. For example accessibility would suffer greatly unless every "jquery" (using your analogy) out there were to implement its own accessibility. (That's not to say things are absolutely peachy wrt. accessibility these days, but they'd get a lot worse if everybody had to implem…
I don't know if developers even care about semantic markup anymore, just have your 5 meg of JavaScript squirt out a bundle of divs and to hell with accessibility.