<!Doctype html>
<html>
<style>
#myProgress {
position: relative;
width: 100%;
height: 30px;
background-color: #ddd;
}
#myBar {
position: absolute;
width: 1%;
height: 100%;
background-color: #4CAF50;
}
</style>
<body>
<h1>My First JavaScript Progress Bar</h1>
<div id="myProgress">
<div id="myBar"></div>
</div>
</body>
</html>