Home >> HTML 5 >> datalist Tag in HTML 5

datalist Tag in HTML 5

The <datalist> tag is used to provide an autocomplete feature in HTML elements.

For example:-

<!DOCTYPE html>
   <title>Datalist Tag</title>
   <label for="city">Choose your city from the list:</label>
   <input list="cities" name="city" id="city">

   <datalist id="cities">
      <option value="New Delhi">
      <option value="Banglore">
      <option value="Noida">
      <option value="Gurgoan">

Post Your Comment

Next Questions
dd Tag
del Tag
details Tag
dfn Tag
dialog Tag
dir Tag
div Tag
dl Tag
dt Tag
em Tag
embed Tag
fieldset Tag
figcaption Tag
figure Tag
font Tag
footer Tag
form Tag
frame Tag
frameset Tag
Heading Tag
head Tag
header Tag
hr Tag
html Tag
i Tag

Copyright ©2022 coderraj.com. All Rights Reserved.