The Wayback Machine - https://web.archive.org/web/20250304002055/https://www.geeksforgeeks.org/how-to-create-a-progress-bar-using-html-and-css/
Open In App

How to create a progress bar using HTML and CSS?

Last Updated : 12 Jan, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Share
Report
News Follow

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 progress bars using HTML and CSS.

Refer: How to Create Progress Bar using JavaScript?

Approach:

  • Start with HTML structure, using divs for each skill, and semantic tags for title and skill names.
  • Create containers with background color, width, and border radius for each skill.
  • Inside containers, define progress bars with customized styles.
  • Apply specific widths using classes like “html” and “php” to represent skill levels.
  • Use CSS to style HTML elements, including font size for ‘<p>’ tags and styles for containers and progress bars.

Example:

html




<!DOCTYPE html>
<html>
  
<head>
    <style>
        p {
            font-size: 20px;
        }
  
        .container {
            background-color: rgb(192, 192, 192);
            width: 80%;
            border-radius: 15px;
        }
  
        .skill {
            background-color: rgb(116, 194, 92);
            color: white;
            padding: 1%;
            text-align: right;
            font-size: 20px;
            border-radius: 15px;
        }
  
        .html {
            width: 80%;
        }
  
        .php {
            width: 60%;
        }
    </style>
</head>
  
<body>
    <h1>My Skills</h1>
    <p>HTML</p>
    <div class="container">
        <div class="skill html">80%</div>
    </div>
  
    <p>PHP</p>
    <div class="container">
        <div class="skill php">60%</div>
    </div>
</body>
  
</html>


Output:


Become a Full-Stack Developer and also get 90% fee refund on completing 90% course in 90 days! Take the Three 90 Challenge today.

After successfully processing refunds worth over INR 5 Cr, GeeksforGeeks is back with the Three 90 challenge and this is your chance to upskill and get 90% refund. What more motivation do you need? Start the challenge right away!


Next Article

Similar Reads

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 CSS. By using HTML, we will design the different co
3 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. Prerequisite: Basics of HTML like tags, div, id, class and
3 min read
How to create a Multi Step Progress Bar in HTML CSS and JavaScript?
In this article, we will create a multi-step progress bar. A Multi-Step Progress Bar is a user interface element created with HTML, CSS, and JavaScript. It guides users through a series of steps or stages, visually displaying their progress and allowing step-by-step navigation in a multi-step process or form.Final outputPrerequisiteHTMLCSSJavaScrip
3 min read
Create a File Upload with Progress Bar in HTML CSS & JavaScript
In a file upload with a progress bar application using HTML, CSS, and JavaScript where users can be able to upload the image file, with a live dynamic progress bar of uploading. The uploaded image can be previewed in modal. Users can also clear the uploaded image in the application. PreviewPrerequisitesHTMLCSSJavaScriptApproachCreate the File Uploa
5 min read
Create Progress Bar Component using React and Tailwind CSS
A progress bar is a visual representation of progress in a process. It is commonly used in web applications to indicate the completion status of an operation. In this article, we will learn how to create a progress bar component in React using Tailwind CSS for styling.PrerequisitesJavaScriptReactTailwind CSSApproach Ensure you have a React project
2 min read
How to Set Color of Progress Bar using HTML and CSS ?
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
2 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>ApproachThe HTML document, <head> section c
2 min read
How to Create Gradient Color of Progress Bar in CSS?
Creating a gradient color progress bar can add a visually appealing element to your webpage. Gradients provide smooth transitions between colors, making the progress bar more attractive and enhancing the user experience. These are the different approaches to creating a gradient color progress bar using CSS: Table of Content Using linear-gradientUsi
2 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 generally used in online web apps like YouTube, GitHu
4 min read
How to create circular progress bar using SVG ?
In this article, we will learn how to create a circular progress bar using SVG. Let us begin with the HTML part. In the SVG circle, the cx and cy attributes define the x and y coordinates of the circle. If cx and cy are not taken to the circle's center, it is set to (0,0). The r attribute defines the radius of the circle. Span is an inline characte
3 min read