Tutorialspoint.dev

HTML 5 | <progress> Tag

It is used to represent the progress of a task. It is also define that how much work is done and how much is left to download a things. It is not used to represent the disk space or relevant query.
Syntax:

<progress attributes...> </progress>

Attributes: The <progress> tag consists of two attributes which are listed below:

  • max: It represent the total work is to be done for completing a task.
  • value: It represent the amount of work are already completed.

Note: This tag is used in conjunction with JavaScript to display the progress of a task. It is not used for gauging purposes.

Example:

<!DOCTYPE html>
<html>
    <head>
        <title>progress tag</title>
    </head>
    <body>
        <h1 style="color:green;">GeeksForGeeks</h1>
        Downloading progress for a song:
        <progress value="57" max="100">
        </progress>
    </body>
</html>                    

Output:

Supported Browsers: The browser supported by <progress> tag are listed below:

  • Apple Safari 6.0
  • Google Chrome 8.0
  • Firefox 16.0
  • Opera 11.0
  • Internet Explorer 10.0


This article is attributed to GeeksforGeeks.org

leave a comment

code

0 Comments

load comments

Subscribe to Our Newsletter