How to Set Color of Progress Bar using HTML and CSS ? Last Updated : 11 Jan, 2024 Comments Improve Suggest changes Like Article Like Report The progress bar is an important element on the web, the progress bar can be used for downloading, marks obtained, skill measuring units, etc. To create a progress bar we can use HTML and CSS. The progress bar is used to represent the progress of a task. It also defines how much work is done and how much is left to download a thing. It is not used to represent the disk space or relevant query. Example 1: Implementation of setting the color of the progress bar HTML <!DOCTYPE html> <html> <head> <title> Set Background Color of Progress Bar </title> <style> h1 { color: green; } progress { background: green; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h4> Set Background Color of Progress Bar using HTML and CSS </h4> <progress value="40" max="100"></progress> </body> </html> Output: Example 2: Implementation of setting the color of the progress bar with loading percentage. HTML <!DOCTYPE html> <html> <head> <title>Set background color of Progress Bar</title> <style> h1 { color: #009688; } progress { width: 300px; height: 25px; border: 2px solid gray; } progress::before { content: "Loading: " attr(value) "%"; position: absolute; width: 30%; text-align: center; font-size: 18px; color: blue; } progress::-webkit-progress-bar { background-color: #5ac45d; } progress::-webkit-progress-value { background-color: #ec653c; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h3> Set Background Color of Progress Bar using HTML and CSS </h3> <progress value="30" max="100"></progress> </body> </html> Output: Comment More infoAdvertise with us Next Article How to Set Color of Progress Bar using HTML and CSS ? V vkash8574 Follow Improve Article Tags : Web Technologies Web Templates Similar Reads How to create a progress bar using HTML and CSS? The progress bar is an important element in the web, the progress bar can be used for downloading, marks obtained, skill measuring unit, etc. To create a progress bar we can use HTML and CSS. To make that progress bar responsive you will need JavaScript.In this article, we will learn to create progr 1 min read How to Create a Progress Bar using HTML? To create the progress bar of a task by using a <progress> tag. It is used to represent the progress of a task. It is also defined as how much work is done and how much is left. It is not used to represent the disk space or relevant query. Syntax:<progress attributes...> </progress 2 min read How to create a progress bar animation using HTML and CSS ? In this mini Web Development project we will utilize CSS animations and create a progress bar using them. The progress bar will start from zero and go to a certain extent as we want. The progress bar is basically showing the expertise of a programmer in different languages in animated form. Prerequi 3 min read How to create multi step progress bar using Bootstrap ? In this article, we will create a multi-step progress bar using Bootstrap. In addition to Bootstrap, we will use jQuery for DOM manipulation. Progress bars are used to visualize the quantity of work that's been completed. The strength of the progress bar indicates the progress of the work. It is gen 4 min read Create a Circular Progress Bar using HTML and CSS A circular progress bar is a visual representation that shows the progress of a task or operation in a circular form. It's a straightforward and useful way to represent progress and can enhance the appearance of your application or website. So, we will design a circular progress bar using HTML and C 3 min read Like