DEV Community

Cover image for HTML tags | datalist
Carlos Espada
Carlos Espada

Posted on • Edited on

1 1

HTML tags | datalist

It is used to specify a list of predefined options for an <input> element, thus providing autocompletion. The user will see a drop-down with the corresponding options as they enter data.

The id attribute of the <datalist> must be equal to the list attribute of the <input> to which it is linked.

  • Type: block
  • Self-closing: No
  • Semantic value: No

Definition and example | Support

Top comments (2)

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
carlosespada profile image
Carlos Espada

Hello and thank you :)

Yes, I am, but nothing really important, my main work is for Product Hackers

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay