<progress>
HTML5 <progress> Tag
Instance
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文网(php.cn)</title> </head> <body> 下载进度: <progress value="22" max="100"> </progress> <p><strong>注意:</strong> IE 9 或者更早版本的 IE 浏览器不支持 progress 标签。</p> </body> </html>
Run Example»
Click the "Run Instance" button to view the online instance
Browser support
IE 10, Firefox, Opera, Chrome and Safari 6 support the <progress> tag.
Note: IE 9 or earlier versions of IE browsers do not support the <progress> tag.
Tag definition and usage instructions
<progress> The tag defines the progress (process) of the running task.
Differences between HTML 4.01 and HTML5
The<progress> tag is a new tag in HTML5.
Tips and Notes
Tips: Please use the <progress> tag with JavaScript to display the progress of a task.
Note: The <progress> tag is not suitable for representing metrics (for example, disk space usage or related query results). To represent weights and measures, use the <meter> tag instead.
Attributes
New: New attributes in HTML5.
Attributes | Value | Description |
---|---|---|
maxNew | number | Specifies the value that needs to be completed. |
valueNew | number | Specifies the current value of the process. |
Global attributes
<progress> tag supports global attributes of HTML.
Event attributes
<progress> tag supports HTML event attributes.