The trouble is not populating it. The trouble is that tables, even though structured semantically, give you absolutely no functionality. There are no search, filter, sort, or selection features that you get.
Compared to what? What gives you all that, and what prevents you from having it with tables?
Do you know that there is an HTML tables API?
161–170 of 206 posts
Re: Do you know that there is an HTML tables API?
#162Earlier quoted context omitted.
Because not everyone has useful eyeballs. Some people are blind. The amount of extra work you have to do to make a div faithfully act like a button is far more than simply resetting some styles.
It seems evident to me that semantics are more challenging to define than visuals; it's not the CSS that's the problem.
Re: Do you know that there is an HTML tables API?
#163Earlier quoted context omitted.
HTML tables are cognitively if not officially deprecated these days. I made my 1996 resume in HTML using a table for layout and it was indistinguishable from the Word version when printed. Made by editing the HTML by hand too! Tables are great. I don't doubt that CSS stuff is more capable, but the old ones are still useful.
Back in the early to mid 2000's, making your site "table free" while still working on IE6 was seen as a badge of masochistic pride. Doing table-free multi-column layouts involved doing crazy “float: left/right + padding + margin” with an heavy sprinkle of IE6 clearfix hacks to work right. I mean eventually people dialed in the correct incantations to make table-free designs work for IE6 but it was never quite as stra…
Re: Do you know that there is an HTML tables API?
#164Earlier quoted context omitted.
And spans for creating links…
Thereby forgetting that some people like to open links in a new tab.
Just use please :)
Re: Do you know that there is an HTML tables API?
#165Earlier quoted context omitted.
And, not a single one of the declarative frameworks use the HTMLTableElement API!
So how they do they talk to the browser to add a row to the table? Do you know of any API other than DOM used for this?
Re: Do you know that there is an HTML tables API?
#166Earlier quoted context omitted.
rowIndex isn’t that short.
shortness is in the eye of the beholder… program with spring framework long enough and rowIndex sounds like abbreviation. :)
RowIndexFactoryGeneratorService rowIndexFactoryGeneratorService = new RowIndexFactoryGeneratorService();
RowIndexFactory rowIndexFactory = rowIndexFactoryGeneratorService.getTheFactoryOrSomethingIDontCare();
RowIndex rowIndex = rowIndexFactoryGeneratorService.generateRowIndex();Re: Do you know that there is an HTML tables API?
#167Tables died (thankfully) to make room for flex and grid. I can't see any use case for them at all anymore.
How about displaying data in rows and columns in a accessible and easily styled way, without having to rely on JS and your own CSS to replicate a table? How exactly would you do that with HTML and CSS without using tables? Using flex and grid for those purposes don't make much sense unless you care about design above all else. just gives you so many good defaults (semantic structure, accessibility, column styling, co…
Re: Do you know that there is an HTML tables API?
#168Re: Do you know that there is an HTML tables API?
#169Tables died (thankfully) to make room for flex and grid. I can't see any use case for them at all anymore.
How about displaying data in rows and columns, like records in a database? Or have you forgotten SQL, because you retrieve JSON from your 1000 NoSQL microservices?
Re: Do you know that there is an HTML tables API?
#170I was using it just half a year ago, after either reading MDN or reading what AI suggested. Which means, this API is not obscure and not forgotten. Using `rows` and `cells` is very convenient for keyboard navigation across table cells. https://github.com/ClickHouse/ClickHouse/blob/master/program...
The worst thing on the modern web is people using divs for table data. What do you mean this table isn’t sortable? M365 Admin is the worst offender I’ve come across on this. Just terrible table implementations on almost every page.