Open In App

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

Refer: How to Create Progress Bar using JavaScript?



Approach:

Example:




<!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:




Article Tags :