Executive Summary
- HTML lists are essential for web development
- Datalist and optgroup attributes can enhance user experience
- Compatibility issues can arise on mobile devices
The Buzz Score
The Internet’s Verdict: 70% Hyped, 30% Skeptical
Forum Voices
Many developers have shared their thoughts on HTML lists. One developer noted:
Title reminds me of Joni Mitchell.
I've looked at lists from both sides now From give and take and still somehow It's HTML lists' illusions I recall I really don't know HTML lists at all
Another developer commented on the compatibility of datalist:
This was a fun little read. Just through testing the examples, I also learned datalist does not seem to work well on mobile safari.
Best Practices
When using HTML lists, consider the user experience and compatibility issues. As one developer noted:
What if there’s a bunch of options, but for [reasons] we don’t want a user to be able to select a subset of them? Let’s add the disabled attribute to an optgroup.
However, another developer warned about the limitations of datalist:
Good stuff, except don’t get too excited about `datalist`. It just doesn’t have enough hooks to be actually useful for anything other than a little prototype.
Focus Keyword: HTML Lists