Horje
HTML min Attribute

Definition and Usage

The min attribute specifies the minimum value of an element element.

When used together with the <meter> element, the min attribute specifies the lower bound of the gauge.


Applies to

The min attribute can be used on the following elements:

Elements Attribute
<input> min
<meter> min

Browser Support

The min attribute has the following browser support for each element


How to Use of the min and max attributes - Input Example

Input Example.
index.html
Example: HTML
 <form action="/action_page.php">

  Enter a date before 1980-01-01:
  <input type="date" name="bday" max="1979-12-31">

  Enter a date after 2000-01-01:
  <input type="date" name="bday" min="2000-01-02">

  Quantity (between 1 and 5):
  <input type="number" name="quantity" min="1" max="5">

  <input type="submit">

</form> 

Output should be:

How to Use of the min and max attributes - Input Example

How to use A gauge with a current value and min, max, high, and low segments - Meter Example

Meter Example.
index.html
Example: HTML
 <meter min="0" low="40" high="90" max="100" value="95"></meter> 

Output should be:

How to use A gauge with a current value and min, max, high, and low segments - Meter Example




html min attribute

Type:
Develop
Category:
Web Tutorial
Sub Category:
HTML Attribute
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference