datalist.html (550B)
1 <!DOCTYPE html> 2 <html> 3 <body> 4 5 <h1>The datalist element</h1> 6 7 <form action="/action_page.php" method="get"> 8 <label for="browser">Choose your browser from the list:</label> 9 <input list="browsers" name="browser" id="browser"> 10 <datalist id="browsers"> 11 <option value="Edge"> 12 <option value="Firefox"> 13 <option value="Chrome"> 14 <option value="Opera"> 15 <option value="Safari"> 16 </datalist> 17 <input type="submit"> 18 </form> 19 20 <p><strong>Note:</strong> The datalist tag is not supported in Safari 12.0 (or earlier).</p> 21 22 </body> 23 </html>