The HTML <progress></progress> element was introduced in HTML5. It defines a work-in-progress. This is used to display the progress of a time consuming function in JavaScript, like the progress of a download.
Attributes
| Attribute | Value | Description |
|---|---|---|
max |
number | Defines the value of completion through a number value. |
value |
number | Defines the current value of the progress through a number value. |
form |
id | Allows authors to work around the lack of support for nested <form> elements. The value is an id of a <form> element.
|
HTML example:
Download progress: <progress> <span id="objprogress">86</span>% </progress>