HTML4 HTML5
Used to represent the completion status or progress of an ongoing task, such as file downloading, form submission, or update installation[cite: 3].
Both opening and closing tags are mandatory[cite: 3]. Content inside the tag serves as a fallback for older browsers[cite: 3].
Attributes:
value – current progress value (number from 0 to the value defined in max)[cite: 3].max – maximum value indicating task completion (defaults to 1.0)[cite: 3].class, id, and style are also used[cite: 3].Code:
The browser will interpret this code as follows: