Developer Quizzes
Test your knowledge of HTML, CSS, JavaScript, CS fundamentals, and more with practice questions and answers.
Why Practice with Quizzes?
Active recall through quizzes is one of the most effective ways to retain knowledge. Research shows that testing yourself on material — even before you feel ready — dramatically improves long-term memory compared to passive re-reading.
HTML Quiz
- Which HTML tag is used to define the main content of a document?
✅<main> - What attribute makes an input field required?
✅required - Which tag is used for the largest heading?
✅<h1> - What does the "href" attribute in an <a> tag specify?
✅ The URL of the page the link goes to.
CSS Quiz
- Which CSS property changes text colour?
✅color - How do you centre a block element horizontally?
✅margin: 0 auto;(with a defined width) - Which value of position removes an element from the normal document flow?
✅absoluteorfixed - What does z-index control?
✅ The stacking order of overlapping elements.
JavaScript Quiz
- What does
typeof nullreturn?
✅"object"— a famous JavaScript quirk. - What is NaN and how do you check for it?
✅ NaN means "Not a Number." Check withisNaN(value)orNumber.isNaN(value). - What does the spread operator (...) do?
✅ Expands an iterable (array, string) into individual elements. - What is the difference between null and undefined?
✅undefinedmeans a variable was declared but not assigned.nullis an intentional absence of value.
CS Fundamentals Quiz
- What does DNS stand for?
✅ Domain Name System - Which data structure uses FIFO order?
✅ Queue - What is O(1) time complexity?
✅ Constant time — the operation takes the same time regardless of input size. - What is the difference between HTTP and HTTPS?
✅ HTTPS is HTTP with TLS/SSL encryption for secure communication.
What's Next?
Review the answers in detail by exploring our full tutorials: HTML, CSS, JavaScript. Or see Interview Q&A for more structured prep.