100JSProjects
LearnProjectsExplore all projects
100JS_WORKSPACE/Build · Learn · Repeat
100JSProjects

Practical HTML, CSS, and JavaScript projects designed to help you turn concepts into real skills—one build at a time.

01Explore

./All projects./Learning guides./About./Contact./Privacy

02Resources

./GitHub repository./Support the project

© 2026 100 JS Projects. Built for developers.

TermsCookiesContact
JS//Projects/Weight Converter

Weight ConverterHTML, CSS & JavaScript Project

HTML5CSS3JavaScript
View Source CodeLive Demo
Weight Converter project previewTry Live Demo
What you'll build

Weight Converter

In this project, we’re going to build a practical weight converter using HTML, CSS, and JavaScript. You’ll see how to convert a value and keep the result easy to understand. Along the way, you’ll practice setTimeout, input events, DOM selection, so you can understand how the interface and JavaScript logic work together.

HTML
— Structure
CSS
— Design
JavaScript
— Logic
Complete project files

Build It from the Source Code

Create these three files, copy the code into each one, then open index.html with Live Server.

Project structure
weight-converter/
├── index.html
├── style.css
└── index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Weight Converter</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <h1 class="heading">Weight Converter</h1>
        <div class="input-container">
            <label for="pounds">Pounds:</label>
            <input type="number" id="input" class="input" step=".1" placeholder="Enter number">
        </div>
        <p>Your weight in kg is: <span id="result"></span></p>
        <p class="error" id="error"></p>
    </div>
    <script src="index.js"></script>
</body>
</html>
JS// Related Projects

Keep Building with Similar Projects

Continue your learning journey with these handpicked projects that share similar concepts and technologies

Tip Calculator project preview
HTMLCSSJavaScript

Tip Calculator

In this project, we’re going to build a practical tip calculator using HTML, CSS, and JavaScript. The user can enter a bill amount and tip percentage, then calculate the final total with one click. It’s a small project, but it gives you a really good understanding of how JavaScript takes user input, performs a calculation, and displays the result on the page.

View project
Simple Stopwatch project preview
HTMLCSSJavaScript

Simple Stopwatch

In this project, we’re going to build a practical simple stopwatch using HTML, CSS, and JavaScript. You’ll see how to connect user interactions to visible changes on the page. Along the way, you’ll practice setInterval, click events, DOM selection, so you can understand how the interface and JavaScript logic work together.

View project
Dice Roll Simulator project preview
HTMLCSSJavaScript

Dice Roll Simulator

In this project, we’re going to build a practical dice roll simulator using HTML, CSS, and JavaScript. You’ll see how to connect user interactions to visible changes on the page. Along the way, you’ll practice setTimeout, click events, DOM selection, so you can understand how the interface and JavaScript logic work together.

View project
{ }View All Projects