HTML <progress> max attribute
Definition and usage
max
The attribute specifies the total work required for the task.
Example
Display progress bar:
<label for="file">Download progress:</label> <progress id="file" value="32" max="100"> 32% </progress>
Syntax
<progress max="number">
Attribute value
Value | Description |
---|---|
number | A floating-point number used to specify the total work required for a task to be considered complete. The default value is 1. |
Browser support
The numbers in the table indicate the first browser version to fully support this property.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
8.0 | 10.0 | 16.0 | 6.0 | 11.0 |