Javatpoint Logo
Javatpoint Logo

HTML Progress Tag

HTML <progress> tag is used to display the progress of a task. It provides an easy way for web developers to create progress bar on the website. It is mostly used to show the progress of a file uploading on the web page.

The HTML progress tag is new in HTML5 so you must use new browsers.


Attributes of HTML Progress Tag

HTML <progress> tag supports the global and event attributes as well as 2 specific attributes.

TagDescription
valueIt defines that how much work the task has been completed.
maxIt defines that how much work the task requires in total.

The progress tag should be used to represent progress of a task only, not for just a gauge (disk pace usage). For such purpose, <meter> element is used.


HTML Progress Tag Example

Let's see HTML progress example without attribute.

Test it Now

Output:


Let's see the progress example with value and max attributes.

Test it Now

Output:

Downloading progress:

Styling Progress Bar

You can apply CSS code on progress tag.

Test it Now

Output:


HTML Progress Tag with JavaScript

The <progress> tag should be used in conjunction with JavaScript to display the progress of a task.

Test it Now

Output:




Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<progress>YesYesYesYesYes
Next TopicHTML quotes Tag





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA