DEV Community

Cover image for HTML tags | progress
Carlos Espada
Carlos Espada

Posted on • Edited on

HTML tags | progress

It is used to show the progress in the completion of a task, usually shown as a progress bar.

Supports two attributes: max to indicate how much the task requires to complete and value to indicate how much of the task has already been completed. Both are optional and their value is a float.

max defaults to 1 and must be greater than 0, while value must be between 0 and max or between 0 and 1 if max is not defined. In case of no value, <progress> takes an indeterminate value and is accessible by CSS with the pseudo-class :indeterminate.

For better accessibility it should be used with an associated tag using for-id.

  • Type: block
  • Self-closing: No
  • Semantic value: No

Definition and example | Support

Top comments (0)

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay