programming-examples/html/Form/form_datalist.html

19 lines
346 B
HTML
Raw Normal View History

2019-11-15 12:59:38 +01:00
<!DOCTYPE html>
<html>
<head>
<title>Html5</title>
<meta charset="UTF-8">
</head>
<body>
<form action="">
Select a fruit:
<input type="text" list="fruits">
<datalist id="fruits">
<option value="Orange"></option>
<option value="Apple"></option>
<option value="Pear"></option>
<option value="Peach"></option>
</datalist>
</form>
</body>
</html>