HTML max Attribute

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 −


 Live Demo

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


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

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

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