HTML datalist tag

By | March 25, 2020

In this chapter we will learn about <datalist> tag of HTML.

HTML datalist tag

This HTML tag is used to provide auto completion feature on the form element. This tag provides a list of predefined options for users to select data.

HTML <datalist> tag should be used with <input> elements.

datalist tag example:-

<form action="test.php" method="get">
	<input type="text" list="Opetion">

<datalist id="myId">
	<option value="One"></option>
	<option value="Two"></option>
	<option value="three"></option>
	<option value="four"></option>
	<option value="five"></option>
</datalist>
<input type="submit">
</form>

Output:-

datalist tag Browser Support:-

All modern browsers support <datalist> tag of HTML.

HTML datalist tag

for job
learn coding
For result in india
Make Website Make Money
PM Kisan Yojna
USA Program
Read General Knowledge
All Help Line Number
Spread the love

Leave a Reply

Your email address will not be published. Required fields are marked *