HTML <progress> Tag

Beginner
7 min read
Updated: Nov 2026
4 examples
Live preview

Definition and Usage

The <progress> element displays an indicator for how far a task has completed — typically a progress bar for uploads, installs, or multi-step work.

Set value for how much is done and max for the total (default 1). Omit value for an indeterminate bar (busy, unknown %). For a scalar gauge (disk used, score, battery), use <meter> instead.

Baseline · Widely available.

Not deprecated. Stable across browsers since about July 2015.

No min attribute.

Unlike <meter>, the minimum on <progress> is always 0. Do not use min here.

Labeling.

Inner text is a fallback for old browsers — not an accessible name. Prefer a <label>, or aria-label / aria-labelledby.

HTML Syntax

syntax.html
<progress value=" 70" max="100">70%</progress>

Both start and end tags are required. Content is phrasing content used as fallback text — do not nest another <progress>.

Attributes

Element-specific attributes on <progress> (plus global attributes):

AttributeDescriptionTry it
valueHow much of the task is done (from 0 to max). Omit for indeterminateTry it
maxTotal work required; must be greater than 0 (default 1)Try it

Global Attributes

The <progress> tag also supports the Global Attributes in HTML.

Live Preview

Change value on a real <progress>, or switch to indeterminate (no value).

max="100" — omit value for indeterminate.

File progress
70%

value="70" max="100"

HTML Examples

Short, copy-ready snippets. Use Try It Yourself for a live editor.

Example 1 — Determinate Progress

Show known completion with value and max, plus fallback text.

HTML
<progress value="70" max="100">70%</progress>
Try It Yourself

How It Works

  1. Set max to the total amount of work (here 100).
  2. Set value to how much is done (here 70).
  3. Put fallback text like 70% between the tags.
  4. The browser draws a bar filled to 70% of the maximum.

Example 2 — Accessible Label

Associate a visible caption with for / id (progress is labelable).

HTML
<label for="file">File progress:</label>
<progress id="file" max="100" value="70">70%</progress>
Try It Yourself

How It Works

  1. Give the progress an id.
  2. Point <label for> at that id.
  3. Keep fallback text inside for older browsers.
  4. Assistive tech can announce the bar with that label name.

Example 3 — Indeterminate Progress

Omit value when you know work is happening but not how far it has gone.

HTML
<label for="sync">Syncing…</label>
<progress id="sync">Working…</progress>
Try It Yourself

How It Works

  1. Do not set value so the bar is indeterminate.
  2. Still provide a label that explains the activity.
  3. Browsers show a busy/animated style (exact look varies).
  4. To go indeterminate later in JS, call removeAttribute('value') — setting value="" is not enough. Match with :indeterminate if you style it.

Example 4 — progress vs meter

Use progress for task completion; use meter for a reading in a range.

HTML
<p>
  Upload:
  <progress value="40" max="100">40%</progress>
</p>
<p>
  Disk used:
  <meter min="0" max="100" value="40">40%</meter>
</p>
Try It Yourself

How It Works

  1. <progress> — how much of a task is finished (upload here).
  2. <meter> — a current reading in a known range (disk used).
  3. meter allows min; progress always starts at 0.
  4. Choose by meaning so assistive tech and future maintainers stay clear.

Edge Cases & Pitfalls

Most progress bugs are wrong semantics, missing labels, or leaving a stale value when you want “busy.”

meaning

Do not use progress as a gauge

Disk free space, exam scores, and fuel levels belong on <meter>. Reserve <progress> for task completion.

min

min is not allowed

The floor is always 0. Invalid or out-of-range numbers can make the bar behave oddly — keep value between 0 and max.

a11y

Inner text is not the accessible name

Use <label> or ARIA labeling. Fallback text alone does not name the control for screen readers.

busy

Clear value for indeterminate

After a determinate bar, call removeAttribute('value'). Empty string still counts as a value in many UAs.

aria

Do not override the role

Implicit role is progressbar. Extra roles are not permitted — keep the native element and label it.

Browser Support

The <progress> element is core HTML in every modern browser. It is not a Node.js, Deno, or Bun API.

✓ Baseline · Widely available

<progress>

Widely available since about July 2015. Chrome, Firefox, Safari, Edge, and Opera all support determinate and indeterminate progress bars (exact styling varies).

96% Global support (approx.)
Google Chrome All modern
Full support
Mozilla Firefox All modern
Full support
Apple Safari All modern
Full support
Microsoft Edge All modern
Full support
Opera All modern
Full support
Samsung Internet All modern
Full support
Internet Explorer 10+
Supported
<progress> Widely supported

Bottom line: Safe for production progress bars. Always label the control, and use meter when you mean a gauge instead of task progress.

Key Takeaways

  • Role: <progress> shows task completion, not a general gauge.
  • Attributes: value + max for determinate; omit value for indeterminate.
  • Label: use <label> or ARIA — inner text alone is not enough.
  • Sibling: gauges with custom ranges → <meter>; never invent min on progress.

One line: set value/max for known progress, omit value when busy, and always label the bar.

Default CSS Settings

Typical user-agent styling for progress (exact bar chrome is browser-specific):

default.css
progress {
  display: inline-block;
  vertical-align: -0.2em;
}

Appearance, colors, and indeterminate animation come from the UA. You can restyle with CSS, including :indeterminate, but keep contrast and a text label.

Frequently Asked Questions

The progress element shows how far a task has completed — uploads, installs, multi-step jobs. It usually appears as a progress bar.
Omit the value attribute (or remove it with removeAttribute('value')). The bar then means “working” with no known percentage. Style it with the :indeterminate pseudo-class if needed.
No. The minimum is always 0. Do not use the min attribute on progress. For a gauge with a custom min, use the meter element instead.
progress is for task completion (how much work is done). meter is for a scalar reading in a known range (disk used, score, battery). Pick by meaning, not by looks.
No. Inner text is mainly a fallback for old browsers. Give a real label with a label element, or aria-label / aria-labelledby.
No. It is Baseline and widely available across modern browsers.

Next: q

Mark short inline quotations with the HTML q element.

q tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

12 people found this page helpful