A colorful, interactive quiz app built with plain HTML, CSS, and JavaScript — no frameworks, no backend, runs entirely in the browser.
🔗 Live Demo — replace this link once deployed to GitHub Pages
- 20 general knowledge & programming questions covering web dev, CS fundamentals, and general trivia
- Start screen with quiz info before jumping in — nothing begins until you click "Start Quiz"
- 60-second timer per question — if time runs out, the correct answer is auto-shown but the question scores zero
- Changeable answers — select, deselect, or switch your answer freely until you hit Next; once you move to the next question, there's no going back
- Live question tracker — a vertical sidebar of small boxes shows your progress through all 20 questions at a glance
- Answers revealed only at submission — no instant right/wrong feedback while answering, just a full review at the end
- Results screen with an animated score circle, a performance message, and a question-by-question breakdown of your answers vs. the correct ones
- Colorful, Kahoot-inspired UI with a white-and-blue theme, animated background shapes, and a hand-drawn illustration
- Fully responsive — works on desktop and mobile
- HTML5 — structure
- CSS3 — styling, gradients, animations, responsive layout
- JavaScript (Vanilla) — quiz logic, timer, scoring, DOM manipulation
No libraries, no build tools — just open the file and it works.
quiz-app/
├── index.html # Page structure (start screen, quiz screen, results screen)
├── style.css # All styling, colors, animations, responsive rules
├── script.js # Quiz data, timer logic, scoring, and DOM updates
└── README.md
- Clone this repository:
git clone https://github.com/yourusername/quiz-app.git
- Open the folder in VS Code (or any editor)
- Open
index.htmldirectly in your browser, or use the Live Server extension in VS Code for auto-reload
No installation, no dependencies, no build step required.
This project is ready for GitHub Pages:
- Push the repo to GitHub
- Go to Settings → Pages
- Set the source branch to
mainand folder to/root - Your live link will appear at
https://yourusername.github.io/quiz-app/
- Land on the start screen and click Start Quiz
- Answer each question — you have 60 seconds per question, shown by the countdown bar
- Click an option to select it; click again to deselect, or pick another to switch
- Click Next to lock in your answer and move on — you can't go back afterward
- If time runs out, the correct answer is shown automatically, but you get no marks for it
- After the last question, click Submit Quiz to see your final score and a full breakdown of every answer
- Add or edit questions: edit the
questionsarray at the top ofscript.js— each entry needs aquestion, anoptionsarray (4 choices), and acorrectIndex - Change the timer length: edit
TIME_PER_QUESTIONinscript.js - Change the color theme: edit the CSS variables at the top of
style.css(:rootsection)
- Question categories or difficulty levels
- Shuffle question and answer order each attempt
- Save high scores using
localStorage - Sound effects for correct/wrong answers
- Dark mode toggle
This project is open source and free to use for learning purposes.