progress ... ⁄progress
HTML5 progress element
The progress element allows you to represent, through a progress bar, the degree of progress of a task. »video
The progress can be:
- - indeterminate (value attribute absent) or
- - determinate (value attribute present)
About progress
- is an optional element
- multiple progress elements allowed per HTML5 document
Display & support progress
- display in browser »video





Parents, children progress
- progress nested within elements »progress parents
- elements nested within progress »progress children
»examples
Attributes progress
- required: none
- optional: specific attributes, global attributes, event attributes
Recommendation
Provide fallback content for the progress element. »video
Warning
Do not use the progress element to represent a gauge, use the meter element for that.
Syntax progress
1 | <> ... </> »video |
Attributes and Values progress (comma separated)
< | attribute | = | "attribute_value(s)" | > | Video | Examples |
---|---|---|---|---|---|---|
1. specific attributes | ||||||
1. | value | = | 0, valid floating-point number | »video | <value="0.4"> ... <⁄ > | |
2. | max | = | 1, valid floating-point number | »video | <value="2" max="9"> ... <⁄ > | |
All Specific Attributes | ||||||
2. global attributes | ||||||
1. | accesskey | = | keyboard key | »img | <accesskey="h"> ... </ > | |
2. | class | = | class name | »html »img | <class="class_name"> ... </ > | |
3. | contenteditable | = | "", , true, false | »html | <contenteditable="true"> ... </ > | |
4. | contextmenu | = | menu id value | »html | <contextmenu="menu_id_value"> ... </ > | |
5. | data-* | = | value | - | <data-http-error="404"> ... </ > | |
6. | dir | = | ltr, rtl, auto | »html | <dir="ltr"> ... </ > | |
7. | draggable | = | true, , false | »img | <draggable="false"> ... </ > | |
8. | dropzone | = | copy, move, link, string:, file: | - | <dropzone="copy"> ... </ > | |
9. | hidden | = | "", , hidden | »html »img | <hidden="hidden"> ... </ > | |
10. | id | = | id name | »html »img | <id="unique_id_name"> ... </ > | |
11. | itemid | = | URL | - | - | |
12. | itemprop | = | string | »link »a | - | |
13. | itemref | = | string | - | - | |
14. | itemscope | = | "", , itemscope | - | - | |
15. | itemtype | = | absolute URL | - | - | |
16. | lang | = | language code | »html »head»title »img | <lang="en"> ... </ > | |
17. | spellcheck | = | "", , true, false | »html | <spellcheck="true"> ... </ > | |
18. | style | = | CSS property:value | »html »img | <style="color:red"> ... </ > | |
19. | tabindex | = | integer | »img | <tabindex="3"> ... </ > | |
20. | title | = | text | »html »link»style »abbr»dfn »img »meter | <title="html page"> ... </ > | |
21. | translate | = | "", yes, no | »html »img | <translate="yes"> ... </ > | |
All Global Attributes | ||||||
3. global event attributes | ||||||
1. | onclick | = | script | » list | <element onclick="script" > ... | |
2. | ondblclick | = | script | » list | <element ondblclick="script" > ... | |
All Event Attributes |
Video demonstration progress element
HTML5 progress element: representation of a task in progress
min | video details |
---|---|
00:00 | video tutorial: progress element |
00:04 | the progress element allows you to represent through a progress bar the degree of progress of a task |
00:10 | the progress element has a script attached, in our case, to be able to see the progress bar in action |
00:17 | our progress is indeterminate (value attribute is missing) |
00:25 | once we click on 'Download file' button, the download of a file starts, and we can see its download progress |
00:32 | download completed! |