5 ms·
Stoked to see a few hundred people have already read this article (and one person's already suggested an improvement!). What other elements should I add?
by hbroadbent 2y ago
Stoked to see a few hundred people have already read this article (and one person's already suggested an improvement!).
What other elements should I add?
- moi2388 2y agoYou tell me. I actually didn’t know the modal element existed. Quite handy!
- hbroadbent 2y agoHah fair enough! I've actually just stumbled on the Popover hint demo (https://mdn.github.io/dom-examples/popover-api/popover-hint/ https://mdn.github.io/dom-examples/popover-api/popover-hint/) which uses the Popover API to create native HTML tooltips. I'm planning to update my article with them once I've played around a bit more
- lelanthran 2y ago> What other elements should I add? Not really an element, but `popover` attributes for elements, maybe? Recently I've been using fieldset+legend to great effect for titled input forms. In fact I've used it almost exclusively in my last contract. Some other ones that too few people use: progress, cite, sub/sup, datalist (very useful), and search (also very useful as a busy indicator when used with no percentage).