HTML min Attribute

The min attribute of the element is used to set the lower bound for . However, the element is used to measure data with a give range like water impurity level and it is set using the min and max attribute.

Syntax

For obvious reasons, the min value is less than the max value. The default is 0. Following is the syntax ?

The num above is a number in floating-point that sets the min attribute of the element.

Example

Let us now see an example to implement the min attribute of the element ?



Water Levels

Impurity Level

TDS Level

Output

This will produce the following output ?

In the above example, we have displayed meter for water levels using the . For minimum value of the meter, we have used the min attribute ?

Updated on: 2026-03-11T22:50:45+05:30

191 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements