DEV Community

Cover image for HTML tags | datalist
Carlos Espada
Carlos Espada

Posted on

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 | Example | Support

Discussion (3)

Collapse
posandu profile image
Posandu

Hello , Nice Post. Are you in Github ?

Collapse
carlosespada profile image
Carlos Espada Author

Hello and thank you :)

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

Collapse
posandu profile image
Posandu

If you can, give a star to this project github.com/Tronic247/material