CKTIS / HTML
min — lower value bound
The min attribute sets the lower bound for supported input types and for a meter's range. It does not specify a minimum text length.
Version: WHATWG HTML Living Standard; index snapshot date recorded separately
Syntax
input: min="<type-specific minimum>"; meter: min="<floating-point number>"The min attribute applies to input types number, range, date, month, week, time, and datetime-local. Its format depends on the type, for example 3 or 2026-11-18. Other types ignore it; use minlength for text length.
A value below the minimum normally causes validity.rangeUnderflow, but does not prevent assignment itself. An empty field does not become mandatory: use required. Missing or invalid min means the type's default minimum or no minimum; range defaults to 0 and adjusts values into its range. min also establishes the step base.
For time, a range with min greater than max crosses midnight. For the other listed types, max must not be less than min.
On meter, the attribute defines the scale's lower endpoint, not a form-validation rule. The attribute value must be written as a valid floating-point number. The minimum is 0 if the attribute is omitted or if parsing the value using HTML's floating-point rules fails. For example, min=" 2" is nonconforming because of the leading space, but the value parses as 2, so the minimum is 2. Keep min <= value <= max.
Examples
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>min example</title>
<label>Quantity: <input id="quantity" type="number" min="3" value="2"></label>
<label>Level: <meter id="level" min="0" max="10" value="4">4 / 10</meter></label>
<pre id="result"></pre>
<script>
const quantity = document.getElementById('quantity');
const level = document.getElementById('level');
const lines = [];
lines.push(`2: rangeUnderflow=${quantity.validity.rangeUnderflow}`);
quantity.value = '3';
lines.push(`3: rangeUnderflow=${quantity.validity.rangeUnderflow}`);
lines.push(`meter.min=${level.min}`);
document.getElementById('result').textContent = lines.join('\n');
</script>
</html>Result
2: rangeUnderflow=true 3: rangeUnderflow=false meter.min=0
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.