Forms & Controls

HTML <progress> element

Represents progress toward completing a task. Omit value for indeterminate progress; max defines the upper bound. Use progress for completion of a task, not for an arbitrary measurement. Omit value for indeterminate work and provide an accessible label. A meter is the better element for a bounded measurement such as storage usage. It accepts global HTML attributes; individual global features may be inapplicable or restricted.

Formal Syntax & Structure

html syntaxhtml
<progress max="100" value="40">40%</progress>

Parameters & Attributes

NameTypeDescription
valuenon-negative numberCurrent progress; omission gives indeterminate progress. Must not exceed max.
maxpositive numberTotal work; default 1. Use a positive value.

Return Value

HTMLProgressElement

Content model: Phrasing content, with no nested element of the same kind.

Working Example

Example Snippethtml
<!doctype html><html lang="en">  <head>    <meta charset="utf-8">    <title>HTML example</title>  </head>  <body>    <label for="done">Reading progress</label>    <progress id="done" max="10" value="4">4 of 10</progress>  </body></html>
HTML Reference