HTML <progress> max Attribute

HTMLWeb DevelopmentFront End Technology

Tha max attribute of the <progress> tag in HTML is used to set the maximum value in a progress bar.

Following is the syntax −

<progress max="num">

Above, num represents the number in floating-point. It displays how much effort the task necessitates.

Let us now see an example to implement the max attribute of the <progress> element −

Example

 Live Demo

<!DOCTYPE html>
<html>
<body>
   <h2>Windows Build 10.58.89.1</h2>
      Downloading and Installing:
      <progress value="75" max="100"></progress>
</body>
</html>

Output

In the above example, we have displayed the progress of a task going on using the <progress> −

<progress value="75" max="100">
</progress>

We have set the maximum value in the progress bar using the max attribute −

max="100"
raja
Published on 19-Jun-2019 08:33:20
Advertisements