Best matchMultiplication App
Save interface data and restore it between browser sessions.
Build a multiplication app →Build a dark mode toggle with HTML, CSS, and JavaScript while practicing local storage and input events.
This project shows you how HTML, CSS, and JavaScript work together in a dark mode toggle. You’ll connect user interactions to visible changes on the page, then practice local storage, input events, and DOM selection as you build the complete project from scratch.
Recommended knowledge: Basic HTML and CSS, JavaScript objects and arrays, JSON basics, JavaScript variables and number operations.
This project saves its data between browser sessions.
index.html<!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>Dark Mode Toggle</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<input type="checkbox" id="dark-mode" class="input" />
<label for="dark-mode" class="label">
<div class="circle"></div>
</label>
<script src="index.js"></script>
</body>
</html>
Practice local Storage, input events, and DOM Selection with these related projects.
Best matchSave interface data and restore it between browser sessions.
Build a multiplication app →
Create editable notes and keep them saved in the browser.
Build a note taking app →
Select page elements and control them with JavaScript.
Build a to do list →
Save interface data and restore it between browser sessions.
Build a multiplication app
Create editable notes and keep them saved in the browser.
Build a note taking app
Select page elements and control them with JavaScript.
Build a to do list