- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to use the
The HTML <datalist> tag specifies a set of options for <input> element. You need to also add an id. Use the <option>…<option> tag inside the <datalist…</datalist> tag.
Example
You can try to run the following code to use the <datalist> tag in HTML −
<!DOCTYPE html> <html> <head> <title>HTML Datalist Tag</title> </head> <body> <p>Type the tool name:</p> <input list = "tools" /> <datalist id = "tools"> <option value = "Image Editor"> <option value = "Whiteboard"> <option value = "Image Optimizer"> <option value = "Document Viewer"> </datalist> </body> </html>
- Related Articles
- How to use title tag in HTML Page?
- How to use an HTML tag inside HTML table?
- How to use the tag to define HTML document title?
- How to use the tag for keyboard input formatting in HTML?
- How to use Meta Tag to redirect an HTML page?
- How to use the tag to define style information for an HTML page?
- How to use the tag to define the base URL for an HTML page?
- Why do we use head tag in HTML Page?
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag

Advertisements