max attribute

<input max='value'>

Explanation

Max attribute provides the maximum values for the <input>.

Example Code:

Result :
Pick a date before 2000-01-01:
  • max attribute indicates the maximum value, that can be entered in a input field.
  • It functions with the input types like "month, datetime-local, range, date, number, datetime, time and week".

Limitations:

It will function only in "Opera and Chrome" browsers.

Ask Questions

Ask Question