<Progress> in HTML5


Prev Tutorial Next Tutorial

Progress Tag in HTML5

The <progress> tag is used to display the progress of a task. Using this tag you van create a progress bar on web page. The main purpose of this tag is to show file uploading progress.

Attributes of Progress Tag

AttributesDescription
vlaueIt is defined how much task has been completed.
maxIt define how much task required.

Example

	
<!doctype html>
<html>
<body>
<progress></progess>
</body>
</html>

Example

Download progress:

Example with value and max attribute

Example

	
<!doctype html>
<html>
<body>
<p>Download progress:</p>
<progress value="40" max="100">
</progess>
</body>
</html>

Result

Download progress:

Set height and width of progress

You can also set the height and width of progress using css.

Example

	
<!doctype html>
<html>
<head>
<style>
progress{
  height: 40px;  
}  
</style>
</head>
<body>
<p>Download progress:</p>
<progress> </progess>
</body>
</html>

Result

Download progress:

Browser supported

Element
<progress>YesYesYesYesYes

Prev Tutorial Next Tutorial

Advertisements




Download Projects