The HTML <progress> element represents the completion progress of a task.
Overview TableThe HTML `
` element is a number in the range zero to a maximum, giving the fraction of work that has so far been completed. The progress element is not the correct element to use for something that is just a gauge, as opposed to task progress. For instance, indicating disk space usage using progress would be inappropriate. Instead, the [meter](/html/elements/meter) element is available for such use cases.The content of the progress element should represent the set min/max/value attributes in human readable form. This will be picked up by assistive technologies as well as act as a fallback for browsers not supporting the element.
AttributesThis element supports the HTML5 global attributes.
Example of a basic progress element
<progress value="165" max="200">165 of 200 finished</progress>
Example of progress without a maximum
<progress value="0.72">72% done</progress>
Styling options for the progress bar (vendor-specific)
progress {
-webkit-appearance: none;
}
progress::-webkit-progress-bar {
background-color: lightgray;
}
progress::-webkit-progress-value {
background-color: lightgreen;
}
Progress element without value
<progress></progress>
Usage
When the value attribute is omitted, the <progress> element becomes indeterminate, that is, it shows activity but not how much progress has actually been made.
Related specifications
Microsoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4