Name

progress — HTML5

Synopsis

<progress> . . . </progress>

Represents the completion progress of a task, such as downloading. The value measuring task completion can be provided by a script and inserted as content of the progress element or be provided with the value attribute. The progress element may be used even if the maximum value is not known, for example, to indicate a task waiting for a remote host to respond.

Notes

HTML5 only.

Start/End Tags

Required/Required

Attributes

HTML5 Global Attributes

max="number"

Indicates a measure of the total work the task requires. The default is 1.

value="number"

Specifies how much of the task has been completed.

Example

<p>Percent downloaded: <progress max="100"><span
id="completed">0</span>%</progress></p>

Get HTML & XHTML Pocket Reference, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.