<progress>: The Progress Indicator element
The <progress> HTML element displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
| Content categories | Flow content, phrasing content, labelable content, palpable content. |
|---|---|
| Permitted content |
Phrasing content, but there must be no <progress> element among its
descendants.
|
| Tag omission | None, both the starting and ending tag are mandatory. |
| Permitted parents | Any element that accepts phrasing content. |
| Implicit ARIA role | progressbar |
| Permitted ARIA roles | No role permitted |
| DOM interface | HTMLProgressElement |
Attributes
This element includes the global attributes.
max-
This attribute describes how much work the task indicated by the
progresselement requires. Themaxattribute, if present, must have a value greater than0and be a valid floating point number. The default value is1. value-
This attribute specifies how much of the task that has been completed. It must be a valid floating point number between
0andmax, or between0and1ifmaxis omitted. If there is novalueattribute, the progress bar is indeterminate; this indicates that an activity is ongoing with no indication of how long it is expected to take.
Note: Unlike the <meter> element, the minimum value is always 0, and the min attribute is not allowed for the <progress> element.
Note: The :indeterminate pseudo-class can be used to match against indeterminate progress bars. To change the progress bar to indeterminate after giving it a value you must remove the value attribute with element.removeAttribute('value').
Examples
<progress value="70" max="100">70 %</progress>
Result
On Windows 7, the resulting progress looks like this:
Specifications
| Specification |
|---|
| HTML Standard (HTML) # the-progress-element |
Browser compatibility
BCD tables only load in the browser
