Leakbali
w3 Tutorial, Web Tutorial
Register   Login
Share

Input Type - number 


The number type is used for input fields that should contain a numeric value.

You can also set restrictions on what numbers are accepted:
Points: <input type="number" name="points" min="1" max="10" />
Use the following attributes to specify restrictions for the number type:
AttributeValueDescription
maxnumberSpecifies the maximum value allowed
minnumberSpecifies the minimum value allowed
stepnumberSpecifies legal number intervals (if step="3", legal numbers could be -3,0,3,6, etc)
valuenumberSpecifies the default value
Tip: Safari on the iPhone recognizes the number input type, and changes the on-screen keyboard to match it (shows numbers).
More Tutorial
  1. HTML5 - HTML5 New Input Types
  2. HTML5 - Input Type - email
  3. HTML5 - Input Type - url
  4. HTML5 - Input Type - number
  5. HTML5 - Input Type - range
  6. HTML5 - Input Type - Date Pickers
  7. HTML5 - Input Type - search

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