- Executors
-
Learn
Learn Python Runnable examples, NumPy, pandas, and more Learn AI / Machine LearningNeural networks, ML and LLMs from scratch Learn C & C++ Pointers, memory, STL, and modern C++ Learn C#C# basics, OOP, LINQ, async, and .NET exercises Learn MatplotlibLine, bar, scatter and pie charts with live visualizers Learn RustOwnership, traits, error handling, and threads Learn GoSlices, interfaces, goroutines, and channels Python Algorithms Search, sorting, recursion, and visualizers O(n) C & C++ Algorithms Compare algorithms implemented in C and C++ Coding for Kids Learn to code by playing!
- QuizzesNew
- ChallengesNew
- For TeachersNew
- Updates
- Buy me a coffee
HTML Interview Questions
This HTML quiz collects classic interview questions: what the doctype does, defer vs async, strong vs b, data-* attributes, responsive images and more. Each answer comes with a short explanation you can repeat in an interview.
Sample question
Question 1 of 10What does <!DOCTYPE html> at the top of a page do?
Show the answer
B. It makes the browser render the page in standards mode instead of quirks mode The doctype has one job today: without it, browsers use quirks mode, which emulates old rendering bugs (for example in the box model and table sizing). The encoding is set with <meta charset>.
What this quiz covers
- The doctype, the viewport meta tag and standards mode
- Loading scripts with
deferandasync - Semantic choices like
strongvsband links around block content data-*attributes,idrules and lazy loading- Responsive images with
srcsetand the default button type
Questions people ask
Do I need an account?
No. Anyone can play. Sign in to keep your XP, streak, badges and history.
Can I retake it?
Yes. Your best score is kept, and the questions and answers are shuffled each time.