datalist in HTML 


The HTML <datalist></datalist> tag is also provide an auto complete feature on HTML form. It can be used with an input tag list of predefined options to the users to select data.


<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>CodeHubDeep</title>

</head>

<body>

<p>Enter Your Subject : <input type="text" list="subject" name="subject"></p>

<datalist id="subject">

<option value="Hindi">

<option value="English">

<option value="Math.">

<option value="Science">

<option value="Sanskrit">

</datalist>

</body>

</html>


html autocomplete,input autocomplete,javascript autocomplete,html autocomplete off,input autocomplete off,html input autocomplete,autocomplete bootstrap,chrome autocomplete off,vscode autocomplete,form autocomplete off