2020-08-13 13:07:32 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset='utf-8'>
|
|
|
|
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
|
|
|
|
<title>HTML Tips and Tricks - Datalist Tag</title>
|
|
|
|
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
2020-08-14 05:44:20 +02:00
|
|
|
<link href="https://fonts.googleapis.com/css2?family=Chilanka&display=swap" rel="stylesheet">
|
2020-08-13 13:07:32 +02:00
|
|
|
<link rel='stylesheet' type='text/css' media='screen' href='../main.css'>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div class="demo">
|
2022-10-04 12:37:10 +02:00
|
|
|
<div class="div">
|
2020-08-14 07:00:23 +02:00
|
|
|
<a href="../index.html" class="home">
|
2022-10-04 12:37:10 +02:00
|
|
|
|
2020-08-14 07:00:23 +02:00
|
|
|
<img src="../home.svg" alt="home" />
|
2022-10-04 12:37:10 +02:00
|
|
|
</a></div>
|
2020-08-13 13:07:32 +02:00
|
|
|
<h1>Datalist Tag</h1>
|
|
|
|
<form action="" method="get">
|
|
|
|
<label for="fruit">Choose your fruit from the list:</label>
|
|
|
|
<input list="fruits" name="fruit" id="fruit">
|
|
|
|
<datalist id="fruits">
|
|
|
|
<option value="Apple">
|
|
|
|
<option value="Orange">
|
|
|
|
<option value="Banana">
|
|
|
|
<option value="Mango">
|
|
|
|
<option value="Avacado">
|
|
|
|
</datalist>
|
|
|
|
<input type="submit">
|
2022-10-04 12:37:10 +02:00
|
|
|
</form>
|
|
|
|
|
2020-08-13 13:07:32 +02:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|