4 ms·
That doesn't really answer the question though. It's up to the browser implementers how they do tables, and they certainly could go ahead and cater to common c
by Zecc 6y ago
That doesn't really answer the question though.
It's up to the browser implementers how they do tables, and they certainly could go ahead and cater to common cases in this area. As user agents, it's the browsers' job to be helpful to the user regardless of what the HTML looks like.
For example, nothing in HTML talks about having a search prompt appear on Ctrl+F, yet everyone does it.
- orange8 6y agoHTML does not have a table component because it is a markup language, and that kind of interactivity (sorting, filtering, pagination etc) is really beyond its scope. The exception to this are basic user input fields (buttons, check-boxes etc). This is by design, browser vendors are focused on implementing low level APIs and functionality, leaving the higher level component development stuff up-to web developers and designers. Use a combination of JS, CSS and HTML to create advanced components from scratch, or use one of the thousands of open-source libraries available. The library linked to in this post is a good example of that. > It's up to the browser implementers how they do tables, and they certainly could go ahead and cater to common cases in this area. They already have, via the <table> tag (https://developer.mozilla.org/en-US/docs/Learn/HTML/Tables/Advanced https://developer.mozilla.org/en-US/docs/Learn/HTML/Tables/A...).