Leakbali
w3 Tutorial, Web Tutorial
Register   Login
Share

datalist Element 


The datalist element specifies a list of options for an input field.

The list is created with option elements inside the datalist.

To bind a datalist to an input field, let the list attribute of the input field refer to the id of the datalist:
Webpage: <input type="url" list="url_list" name="link" />
<datalist id="url_list">
<option label="leakbali.com" value="http://www.leakbali.com" />
<option label="Google" value="http://www.google.com" />
<option label="Microsoft" value="http://www.microsoft.com" />
</datalist>

Tip: The option elements should always have a value attribute.
More Tutorial
  1. HTML5 - New Form Elements
  2. HTML5 - datalist Element
  3. HTML5 - keygen Element
  4. HTML5 - Output Element

Tutorial


References

About Us

Home
About Us
Contact Us
Sitemap

Tools

Google PageRank
Alexa Rank
Keywords Density

Accounts

Register Account
Login
Valid XHTML 1.0 TransitionalValid CSS!
Web Directory


2006 - 2012 © Leakbali.com - Free Web Tutorial, Free Web Articles, Web Sharing, Source Codes, Web References