Autocomplete in HTML5

Autocomplete in HTML5 

 
The <datalist> provides autocomplete feature on input element. It specifies the predefined values for an input tag. We see the drop-down list as per the data we decided. It supports only Firefox and Opera browsers.
  1. <!DOCTYPE html>  
  2. <html>  
  3.     <body>  
  4.         <form>  
  5.             <input list="Students" name="DPS" />  
  6.             <datalist id="Students">  
  7.                 <option value="Ram">  
  8.                     <option value="Mahak">  
  9.                         <option value="Kajal">  
  10.                             <option value="Pihu">  
  11.                             </datalist>  
  12.                         </form>  
  13.                     </body>  
  14.                 </html>  
1.png