Hacker News new | past | comments | ask | show | jobs | submit login

HTML 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/A...).




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: