![]() |
VOOZH | about |
In HTML max attribute it specifies the maximum value of an element. when the max attribute is used by the progress element, it specifies how much work the task requires in the total task.
<element max="value" >The max attribute is used on the following elements:
Name | Description |
|---|---|
Maximum value or limit for a parameter or variable. | |
The highest possible measurement value on a metering device. | |
The maximum level of advancement or completion reached in a process. |
Example: In this example we demonstrates the use of the max attribute in an input field, limiting the input to multiples of 5 up to a maximum value of 100.
Output:
Example 2: This Example we are using the max attribute within the <progress> tag to indicate a maximum value of 100 for a song download progress bar.
Output:
Supported Browsers: The browser supported by HTML max Attribute are listed below: