<!DOCTYPE html> <html> <body> <p>It is used to make datalist in an input field.</p> Which is your favourite subject? <input list="subjects" > <datalist id="subjects"> <option>Physics <option>Chemistry <option>Mathematics <option>Computer <option>Biology </datalist> </body> </html>
Run
×
Share