- HTML Tutorial
- HTML - Home
- HTML - History and Evolution
- HTML - Overview
- HTML - Editors
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Headings
- HTML - Paragraphs
- HTML - Quotations
- HTML - Comments
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Style Sheet
- HTML - CSS Classes
- HTML - CSS IDs
- HTML - Images
- HTML - Image Map
- HTML Tables
- HTML - Tables
- HTML - Headers & Caption
- HTML - Table Styling
- HTML - Table Colgroup
- HTML - Nested Tables
- HTML Lists
- HTML - Lists
- HTML - Unordered Lists
- HTML - Ordered Lists
- HTML - Definition Lists
- HTML Links
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Iframes
- HTML - Blocks
- HTML Backgrounds
- HTML - Backgrounds
- HTML Colors
- HTML - Colors
- HTML - RGB
- HTML - HEX
- HTML - HSL
- HTML Forms
- HTML - Forms
- HTML - Form Attributes
- HTML - Form Control
- HTML - Input Attributes
- HTML Media
- HTML - Video Element
- HTML - Audio Element
- HTML - Embed Multimedia
- HTML Header
- HTML - Head Element
- HTML - Adding Favicon
- HTML - Javascript
- HTML Layouts
- HTML - Layouts
- HTML - Layout Elements
- HTML - Layout using CSS
- HTML - Responsiveness
- HTML - Symbols
- HTML - Emojis
- HTML - Style Guide
- HTML Graphics
- HTML - SVG
- HTML - Canvas
- HTML APIs
- HTML - Geolocation API
- HTML - Drag & Drop API
- HTML - Web Workers API
- HTML - WebSocket
- HTML - Web Storage
- HTML - Server Sent Events
- HTML Miscellaneous
- HTML - MathML
- HTML - Microdata
- HTML - IndexedDB
- HTML - Web Messaging
- HTML - Web CORS
- HTML - Web RTC
- HTML Demo
- HTML - Audio Player
- HTML - Video Player
- HTML - Web slide Desk
- HTML Tools
- HTML - Velocity Draw
- HTML - QR Code
- HTML - Modernizer
- HTML - Validation
- HTML - Color Code Builder
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
- HTML Resources
- HTML - Quick Guide
- HTML - Useful Resources
- HTML - Color Code Builder
- HTML - Online Editor
HTML - <progress> Tag
HTML <progress> tag is used to display as an indicator showing the completion progress of a task, commonly displayed as a progress bar. This is a new tag included in HTML5. It used as a progress indicator.
Syntax
<progress>.....</progress>
Attribute
HTML progress tag supports Global and Event attributes of HTML. Some specific attributes as well which are listed bellow.
HTML progress Tag Attributes
Attribute | Value | Description |
---|---|---|
value | number | Hold a number that defines the current value of the progress bar. |
max | number | This is used to set the maximum value of the progress bar. |
Examples of HTML progress Tag
In the following examples we will see the use cases, where and how to use the HTML progress tag to represent progress status.
Specifying the Progress Bar
In the following example, let’s see the usage of the <progress> tag and how it will show a progress bar.
<!DOCTYPE html> <html> <body> <h1>HTML Progress Bar</h1> <label for="task">Work completed:</label> <progress id="task" value="35" max="100"> 35% </progress> </body> </html>
Download completion using progress Tag
Considering the following example, we are using the <progress> tag and displaying how much a file has been downloaded.
<!DOCTYPE html> <html> <body> <h1>HTML Progress Bar</h1> <label for="file">Downloading progress:</label> <progress id="file" value="45" max="100"> 45% </progress> </body> </html>
Invalid Progress bar with no Attribute
Let's look at the following example, where we use the <progress> tag without any attributes. If no attributes are specified in the progress tag, the progress bar will travel left-to-right and right-to-left.
<!DOCTYPE html> <html> <body> <h1>HTML Progress Bar</h1> <progress></progress> </body> </html>
Supported Browsers
Tag | |||||
---|---|---|---|---|---|
progress | Yes 8.0 | Yes 10.0 | Yes 16.0 | Yes 6.0 | Yes 11.0 |
To Continue Learning Please Login
Login with Google