
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
HTML min Attribute
The min attribute in HTML is used to set the minimum value of an element. You can use it in <meter> as well as <input> element.
Example
Let us first see an example of the min attribute of the <meter> element −
<!DOCTYPE html> <html> <body> <h2>Water Levels</h2> <p>Impurity Level <meter min="0" low="50" high="95" max="100" value="85"></meter></p> <p>TDS Level <meter min="0" low="20" high="80" max="100" value="60"></meter></p> </body> </html>
Output
This will produce the following output −
Example
Now, we will see an example of min attribute in <input> element −
<!DOCTYPE html> <html> <body> <h2>Player Details with Reporting Time</h2> <form> <p>These are the <ins>details with <ins>reporting date</ins>:</p> <fieldset> <legend>New Details:</legend> Cricketer: <input type="text"><br> Rank: <input type="number"><br> Email: <input type="email"><br> Reporting Date:<input type="date" name="reporting" min="2019-05-05"> </fieldset> </form> </body> </html>
Output
This will produce the following output −
Now, if you will try to add a date before the 2018-05-05, then the following will be visible −
- Related Articles
- HTML min Attribute
- HTML min Attribute
- Will HTML min attribute work in Firefox
- HTML DOM Meter min Property
- HTML pattern Attribute
- HTML novalidate Attribute
- HTML maxlength Attribute
- HTML wrap Attribute
- HTML disabled Attribute
- HTML for Attribute
- HTML disabled Attribute
- HTML disabled Attribute
- HTML draggable Attribute
- HTML href Attribute
- HTML max Attribute

Advertisements