VOOZH about

URL: https://www.geeksforgeeks.org/web-templates/how-to-set-color-of-progress-bar-using-html-and-css/

⇱ How to Set Color of Progress Bar using HTML and CSS ? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to Set Color of Progress Bar using HTML and CSS ?

Last Updated : 15 Jul, 2025

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

Output:

👁 Screenshot-2024-01-10-125635

Example 2: Implementation of setting the color of the progress bar with loading percentage.

Output:

👁 Screenshot-2024-01-10-130416

Comment