Leakbali
w3 Tutorial, Web Tutorial
Register   Login
Share

min, max and step Attributes 


The min, max and step attributes are used to specify restrictions for input types containing numbers or dates.

The max attribute specifies the maximum value allowed for the input field.

The min attribute specifies the minimum value allowed for the input field.

The step attribute specifies the legal number intervals for the input field (if step="3", legal numbers could be -3,0,3,6, etc).

Note: The min, max, and step attributes works with the following <input> types: date pickers, number, and range.

The example below shows a numeric field that accepts values between 0 and 10, with a step of 3 (legal numbers are 0, 3, 6 and 9):
Points: <input type="number" name="points" min="0" max="10" step="3" />
More Tutorial
  1. HTML5 - New Form Attributes
  2. HTML5 - Browser Support
  3. HTML5 - autocomplete Attribute
  4. HTML5 - autofocus Attribute
  5. HTML5 - form Attribute
  6. HTML5 - Form Override Attributes
  7. HTML5 - height and width Attribute
  8. HTML5 - list Attribute
  9. HTML5 - min, max and step Attributes
  10. HTML5 - multiple Attribute
  11. HTML5 - novalidate Attribute
  12. HTML5 - pattern Attribute
  13. HTML5 - placeholder Attribute
  14. HTML5 - required Attribute

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