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/Simple Stopwatch

Simple Stopwatch

Build a simple stopwatch with HTML, CSS, and JavaScript while practicing setInterval and click events.

Beginner20–30 minutesHTML5CSS3JavaScript
You'll practice
setIntervalClick EventsDOM Selection
View Source CodeLive Demo
demo.100jsprojects.com/stopwatch
Final resultSimple Stopwatch project previewTry Live Demo
01 — What you'll build

Simple Stopwatch

This project shows you how HTML, CSS, and JavaScript work together in a simple stopwatch. You’ll connect user interactions to visible changes on the page, then practice setInterval, click events, and DOM selection as you build the complete project from scratch.

02 — Included
  • ✓Automatic timed updates
  • ✓Simple Stopwatch interface
  • ✓Responsive HTML and CSS layout
  • ✓Complete source code and live demo
03 — You'll practice
  • >Create repeating actions with setInterval
  • >Handle user clicks
  • >Select HTML elements from the DOM
  • >Update content on the page
  • >Work with dates and time
  • >Perform calculations with JavaScript

Recommended knowledge: Basic HTML and CSS, The JavaScript Date object, JavaScript functions and callbacks, Browser timers.

Complete project files

Build It from the Source Code

This project uses timed JavaScript updates.

  1. 1Create three files
  2. →
  3. 2Copy the code
  4. →
  5. 3Run index.html
Before you run it
  • Leave the tab open to see the timed behavior update.
Project structure
stopwatch/
├──
├──
└──
Need help setting up the project?

Create project files, install Live Server, and run your first project.

Open beginner guide
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!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>Stopwatch</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>

    <div id="timer">00:00:00</div>
    <div id="buttons">
        <button id="start">Start</button>
        <button id="stop">Stop</button>
        <button id="reset">Reset</button>
    </div>
    <script src="index.js"></script>
</body>
</html>
JS// Related Projects

Practice with Related Projects

Practice setInterval, javaScript calculations, and dates and time with these related projects.

Analogue Clock project preview★Best match
setIntervalBeginner

Analogue Clock

Create repeating updates that keep the interface moving.

Build an analogue clock →
Pomodoro Timer project preview
JavaScript calculations

Pomodoro Timer

Turn JavaScript calculations into clear visual results.

Build a pomodoro timer →
Age Calculator project preview
dates and time

Age Calculator

Work with date and time values in a browser interface.

Build an age calculator →
Analogue Clock project preview
Related: setInterval★Best match

Analogue Clock

Create repeating updates that keep the interface moving.

Build an analogue clock
Pomodoro Timer project preview
Related: JavaScript calculations

Pomodoro Timer

Turn JavaScript calculations into clear visual results.

Build a pomodoro timer
Age Calculator project preview
Related: dates and time

Age Calculator

Work with date and time values in a browser interface.

More challenging
Build an age calculator
JS{ }Explore All JavaScript ProjectsBrowse by difficulty or concept.Explore All Projects