<datalist> Tag in HTML 5

In this article I am going to explain about datalist tag in HTML 5.
  • 1862


<datalist> Tag  in HTML 5 is used for providing an "autocomplete" feature on form elements.  <datalist> tag in HTML 5 is used to specifies a list of pre-defined options for an <input> element.

Browser Support by <datalist> tag

The <datalist> tag only supports in mozilla firefox and opera browser.

Lets take an example of <datalist> tag




    <input list="Operating System" name="OS" />

    <datalist id="OS">

  <option value="Windows Xp">

  <option value="Windows 7">

  <option value="Linex">

  <option value="Unix">

  <option value="Mac"









You may also read more about HTML 5 here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2020 DotNetHeaven. All rights reserved.