This blog is part of my @devsync c learning journey β documenting what I learn step by step to help others along the way.
π Introduction
Ever wondered if it's possible to build a quiz without JavaScript?
Yes, it is β at least the UI part!
In this post, Iβll walk you through creating a simple Multiple Choice Questions (MCQ) test using only HTML and CSS. No logic, no scripts β just structure and styling.
Perfect for HTML/CSS beginners!
ποΈ Project Structure
Hereβs how I structured the project:
css
Copy
Edit
π task5/
βββ index.html β Welcome page
βββ quiz.html β MCQ form page
βββ style.css β Styling sheet
π Live Demo / Code: https://github.com/chaitanyachopde/task5
β¨ What We Built
π A clean quiz UI
β Selectable radio-button answers
β³ A mock timer using CSS animations
π¨ Stylish layout without using a single line of JavaScript
π index.html (Landing Page)
π§ quiz.html (Questions Page)
π¨ style.css (CSS Styling)
Our CSS handles:
- Responsive layout
- Button styling
- Hover effects
- Container design
β What You Canβt Do Without JS
π‘ Why This is a Great Beginner Project
- Reinforces semantic HTML
- Sharpens form element skills
- Improves CSS layout understanding
- Encourages good folder and file structure
π₯ Powered by Devsync
Big thanks to @devsyncin β where Iβm learning by doing through real-world mini projects.
If you're looking for structured, skill-based learning with hands-on practice, @devsync is a great place to start.
π Explore the Code
π GitHub Repo β https://github.com/chaitanyachopde/task5
Feel free to clone, modify, and build on top of it. This is just the beginning!
π§ Whatβs Next?
- Add JavaScript for answer checking
- Display the score dynamically
- Introduce a timer and auto-submit feature
- Make it mobile-friendly
π Final Thoughts
Creating a quiz with just HTML & CSS might not get you all the way, but it will teach you fundamentals like nothing else. The simplicity makes it a perfect first project.
If you're a beginner, try it yourself!
Fork the repo, customize it, and push your changes. Every commit counts.
Top comments (0)