Open In App

How to set the maximum value of progress bar using HTML ?

In this article, we are creating the progress bar of a task by using a <progress> tag. The <progress> tag is used to represent the progress of a task. It is also defined how much work is done and how much is left to download a thing. It is not used to represent the disk space or relevant query.

The maximum value of progress bar can be set by using max property value.



Syntax:

<progress attributes...> </progress>

Property Values:



Example:




<!DOCTYPE html>
<html>
  
<head>
    <title>
        How to set the maximum value
        of progress bar using HTML?
    </title>
</head>
  
<body style="text-align: center;">
    <h1 style="color:green;">
        GeeksforGeeks
    </h1>
  
    <h3>
        How to set the maximum value
        of progress bar using HTML?
    </h3>
  
    Downloading progress for a song:
    <!-- Set maximum value of progress bar -->
    <progress value="57" max="200">
    </progress>
</body>
  
</html>

Output:

Supported Browsers: 

Article Tags :