Welcome to the Top 10 Mini Projects repository! This collection features 10 practical and beginner-friendly web applications built purely with HTML, CSS, and JavaScript. These projects are perfect for anyone looking to improve their frontend skills with real-world examples, covering topics like DOM manipulation, event handling, API usage, and UI interactivity.
Project Name | Description |
---|---|
1. Weather Calculator | Calculate and convert temperatures; display weather info demo |
2. Note App | Create, edit, and delete notes in a user-friendly UI demo |
3. Tip Calculator | Calculate tips and split bills with ease demo |
4. Unit Converter | Convert values across different measurement units demo |
5. To-Do List | Manage tasks with add, edit, delete functionality demo |
6. Digital Clock | Real-time clock with 12/24 hour toggle demo |
7. Password Generator | Generate secure random passwords based on criteria demo |
8. Currency Converter | Convert currencies using real-time exchange rates demo |
9. Quiz App | Multiple-choice quiz application to test your knowledge demo |
10. Quote Generator | Display random inspirational quotes demo |
1.
Clone the repository:
git clone https://github.com/muzamilriaz786/Top-10-HTML-CSS-And-JavaScript-mini-Projects.git
2.
Open any project folder in your favorite code editor or directly open the HTML files in your browser.
3.
Each project contains an index.html file as the entry point along with related CSS and JS files.
4.
Feel free to modify the code to experiment and learn how each functionality works.
A simple app to convert temperatures (Celsius, Fahrenheit) and calculate indices like heat index, wind chill, and dew point.
Usage:
-
Enter temperature values and select units.
-
Click convert or calculate buttons to get results.
Example snippet (temperature conversion):
function celsiusToFahrenheit(celsius) {
return (celsius * 9/5) + 32;
}
function fahrenheitToCelsius(fahrenheit) {
return (fahrenheit - 32) * 5/9;
}
// Usage
let c = 30;
console.log(`${c}°C = ${celsiusToFahrenheit(c)}°F`);
Create, edit, and delete notes with persistent UI updates.
Features:
-
Add new notes.
-
Edit existing notes inline.
-
Delete unwanted notes.
Example snippet (adding notes):
const notesContainer = document.getElementById('notes');
const addNoteBtn = document.getElementById('add-note');
addNoteBtn.addEventListener('click', () => {
const note = document.createElement('textarea');
note.classList.add('note');
notesContainer.appendChild(note);
});
Calculate the tip amount and split bills among people.
Usage:
-
Enter bill amount.
-
Select tip percentage.
-
Enter number of people sharing the bill.
-
Displays tip per person and total per person.
Example snippet:
function calculateTip(bill, tipPercent, people) {
let tipAmount = (bill * tipPercent) / 100;
let totalPerPerson = (bill + tipAmount) / people;
return { tipAmount: tipAmount.toFixed(2), totalPerPerson: totalPerPerson.toFixed(2) };
}
Convert between various units such as length, weight, temperature, and more.
Usage:
-
Input a value and select units to convert from and to.
-
Displays converted value.
Simple task manager to add, mark complete, and delete tasks.
Example snippet (adding a task):
const todoInput = document.getElementById('todo-input');
const todoList = document.getElementById('todo-list');
const addBtn = document.getElementById('add-btn');
addBtn.addEventListener('click', () => {
if(todoInput.value.trim() !== '') {
const li = document.createElement('li');
li.textContent = todoInput.value;
todoList.appendChild(li);
todoInput.value = '';
}
});
Displays current time with AM/PM toggle.
Generates secure passwords based on selected options (length, symbols, numbers, uppercase).
Uses an API to convert currencies with live exchange rates.
Multiple-choice quiz that tracks user score and provides instant feedback.
Fetches and displays random motivational quotes on button click.
-
HTML5 for markup
-
CSS3 for styling
-
Vanilla JavaScript for functionality and DOM manipulation
Feel free to fork this repo and submit pull requests. Contributions to improve UI, add new features, or fix bugs are welcome!
License This repository is open source under the MIT License.