The min attribute sets the lowest allowed value for an <input>. If the current value is below min, the control fails constraint validation (rangeUnderflow) and matches :invalid / :out-of-range. It must be less than or equal to max when both are set.
Valid on number, range, date, time, datetime-local, month, and week. Also sets the lower bound of a <meter> (default 0 if omitted). For text length, use minlength instead.
Baseline · Widely available.
Not deprecated and not experimental. Stable across modern browsers since about July 2015.
Client validation only.
Users can bypass browser checks. Always enforce the same minimum on the server.
Syntax
HTML Syntax
syntax.html
<input type="number" min="value">
<meter min="number" max="number" value="number">
The format of value depends on the input type (number, date string, time string, and so on).
min is the scale floor (defaults to 0 if omitted).
max is the ceiling; keep min ≤ value ≤ max.
Fallback text inside <meter> helps when the gauge UI is missing.
Not a form validator like on <input> — it displays a measurement.
Edge Cases & Pitfalls
Most issues come from mixing up min with minlength, or forgetting how step interacts.
compare
Do not confuse with minlength
min is for numeric/date values. minlength is for character count on text fields.
step
min + default step can reject “in range” values
With min="7.2" and default step="1", 8 is invalid; valid steps are 7.2, 8.2, … Set step explicitly when needed.
format
Use the correct string format
Dates need yyyy-mm-dd, times HH:mm, and so on. An invalid min string means no minimum is applied.
range
Keep min ≤ max
If min is greater than max, the allowed range is broken. Always order the bounds correctly.
a11y
Explain the minimum to users
Put the rule in the label or help text (or aria-describedby). Do not rely on the browser error alone.
Compatibility
Browser Support
min is an HTML attribute for inputs and meter in the browser. It is not a Node.js, Deno, or Bun API.
✓ Baseline · Widely available
min
Widely available since about July 2015. Chrome, Firefox, Safari, Edge, and Opera support min on number, range, date/time inputs, and meter.
96%Global support (approx.)
Google Chrome5+
Full support
Mozilla Firefox16+
Full support
Apple Safari5+
Full support
Microsoft Edge12+
Full support
Opera12.1+
Full support
Samsung Internet4+
Full support
Internet Explorer10+
Supported
minWidely supported
Bottom line: Safe to use for client-side lower bounds. Always re-check values on the server.
Remember
Key Takeaways
Role: set the lowest allowed numeric or date/time value.
Elements: number/range/date-like inputs and <meter>.
Not minlength: character minimums use minlength.
With step: valid values follow the min + step grid.
One line:min is the floor for values — not for text length.
Frequently Asked Questions
It sets the lowest allowed value for number, range, date, time, datetime-local, month, and week inputs, and the lower bound of a meter. Values below min fail constraint validation (rangeUnderflow).
No. min limits numeric or date/time values. minlength limits how many characters a text field must contain.
input types number, range, date, time, datetime-local, month, and week, plus the meter element. It does not apply to text, email, or checkbox inputs.
Yes. When both are set, min must be less than or equal to max, or the range is invalid.
Valid values are based on min and step. If step is omitted it defaults to 1 for number and range, so a value can fail validation even when it is above min.
No. It is client-side validation only. Always enforce the same minimum on the server.