- 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 & CSS Quizzes
30 HTML & CSS quizzes with 300 multiple-choice questions, from easy to hard. Every answer is explained.
30 quizzes · 300 questions
6 categories
HTML & CSS categories
4 Easy1 Medium
Document Structure & DOCTYPE
Text & Headings
Links & Images
+2
0 of 5 passed
Start
2 Easy3 Medium
Form Elements
Input Types & Validation
Labels & ARIA
+2
0 of 5 passed
Start
2 Easy2 Medium1 Hard
CSS Selectors
Specificity & the Cascade
The Box Model
+2
0 of 5 passed
Start
1 Easy3 Medium1 Hard
Flexbox
CSS Grid
Responsive Design & Media Queries
+2
0 of 5 passed
Start
1 Easy3 Medium1 Hard
Pseudo-classes & Pseudo-elements
Transitions & Animations
Custom Properties (CSS Variables)
+2
0 of 5 passed
Start
3 Medium2 Hard
HTML Interview Questions
CSS Interview Questions
Tricky CSS Questions
+2
0 of 5 passed
Start
matching quizzes
1
Document Structure & DOCTYPE
Easy
Check how an HTML page is put together, from the DOCTYPE to the head and body.
HTML & CSS · HTML Basics
#structure#html-basics
10 questions · ~5 min
Not started
Start
2
Text & Headings
Easy
Pick the right element for headings, emphasis, quotes and line breaks.
HTML & CSS · HTML Basics
#text#html-basics
10 questions · ~5 min
Not started
Start
3
Links & Images
Easy
Write links and images that work, load well and make sense to every user.
HTML & CSS · HTML Basics
#links#images
10 questions · ~5 min
Not started
Start
4
Lists & Tables
Easy
Choose the right list type and build tables that are clear and accessible.
HTML & CSS · HTML Basics
#lists#tables
10 questions · ~5 min
Not started
Start
5
Semantic HTML
Medium
Use the elements that say what content is, not just how it looks.
HTML & CSS · HTML Basics
#semantics#accessibility
10 questions · ~6 min
Not started
Start
1
Form Elements
Easy
Learn how forms send data and which control fits each kind of input.
HTML & CSS · HTML Forms & Accessibility
#forms#html-basics
10 questions · ~5 min
Not started
Start
2
Input Types & Validation
Medium
Use the right input types and built-in validation, and know their limits.
HTML & CSS · HTML Forms & Accessibility
#forms#validation
10 questions · ~6 min
Not started
Start
3
Labels & ARIA
Medium
Give every control an accessible name and use ARIA only where HTML falls short.
HTML & CSS · HTML Forms & Accessibility
#accessibility#aria
10 questions · ~6 min
Not started
Start
4
Audio, Video & iframe
Easy
Embed audio, video and other pages with the right attributes.
HTML & CSS · HTML Forms & Accessibility
#media#iframe
10 questions · ~5 min
Not started
Start
5
Meta Tags & SEO
Medium
Write the head tags that control mobile layout, search results and social previews.
HTML & CSS · HTML Forms & Accessibility
#meta#seo
10 questions · ~6 min
Not started
Start
1
CSS Selectors
Easy
Match the right elements with type, class, id, attribute and combinator selectors.
HTML & CSS · CSS Basics
#selectors#combinators#pseudo-classes
10 questions · ~5 min
Not started
Start
2
Specificity & the Cascade
Hard
Work out which CSS rule wins when several match, from specificity to !important and layers.
HTML & CSS · CSS Basics
#specificity#cascade#inheritance
10 questions · ~8 min
Not started
Start
3
The Box Model
Medium
Compute element sizes from content, padding, border and margin, and predict margin collapse.
HTML & CSS · CSS Basics
#box-model#box-sizing#margin-collapse
10 questions · ~6 min
Not started
Start
4
Units & Colors
Easy
Convert between px, em, rem, %, vw and vh, and read hex, rgb and hsl colors.
HTML & CSS · CSS Basics
#units#colors
10 questions · ~5 min
Not started
Start
5
display & position
Medium
Predict how block, inline, inline-block and none behave, and where positioned elements end up.
HTML & CSS · CSS Basics
#display#position
10 questions · ~6 min
Not started
Start
1
Flexbox
Medium
Predict how flex items grow, shrink, wrap and align inside a flex container.
HTML & CSS · CSS Layout
#flexbox#layout
10 questions · ~6 min
Not started
Start
2
CSS Grid
Medium
Size grid tracks with fr, gaps and minmax, and place items by lines and areas.
HTML & CSS · CSS Layout
#grid#layout
10 questions · ~6 min
Not started
Start
3
Responsive Design & Media Queries
Medium
Build layouts that adapt to the screen with media queries, fluid units and container queries.
HTML & CSS · CSS Layout
#responsive#media-queries
10 questions · ~6 min
Not started
Start
4
z-index & Stacking Contexts
Hard
Find out why a z-index of 9999 still ends up behind, and how stacking contexts decide what is on top.
HTML & CSS · CSS Layout
#z-index#stacking-context#position
10 questions · ~8 min
Not started
Start
5
Centering Things
Easy
Pick the right way to center text, blocks and boxes horizontally and vertically.
HTML & CSS · CSS Layout
#layout#centering#flexbox
10 questions · ~5 min
Not started
Start
1
Pseudo-classes & Pseudo-elements
Medium
Pick the right pseudo-class or pseudo-element and predict what it matches.
HTML & CSS · Advanced CSS
#pseudo-classes#selectors#specificity
10 questions · ~6 min
Not started
Start
2
Transitions & Animations
Medium
Make things move with transitions and keyframes, and avoid the common traps.
HTML & CSS · Advanced CSS
#animations#transitions#performance
10 questions · ~6 min
Not started
Start
3
Custom Properties (CSS Variables)
Medium
Define, scope and use CSS variables, including fallbacks and the invalid value trap.
HTML & CSS · Advanced CSS
#variables#cascade#theming
10 questions · ~6 min
Not started
Start
4
Transforms
Easy
Move, rotate, scale and skew elements with CSS transforms.
HTML & CSS · Advanced CSS
#transforms#positioning
10 questions · ~5 min
Not started
Start
5
Modern CSS
Hard
Test yourself on :has(), container queries, nesting, clamp(), aspect-ratio and logical properties.
HTML & CSS · Advanced CSS
#modern-css#selectors#responsive-design
10 questions · ~8 min
Not started
Start
1
HTML Interview Questions
Medium
Answer the HTML questions that come up again and again in front-end interviews.
HTML & CSS · HTML & CSS Interview Questions
#interview#html#semantics
10 questions · ~6 min
Not started
Start
2
CSS Interview Questions
Medium
Practice the CSS questions interviewers ask about the box model, specificity, units and visibility.
HTML & CSS · HTML & CSS Interview Questions
#interview#css#box-model
10 questions · ~6 min
Not started
Start
3
Tricky CSS Questions
Hard
Real CSS gotchas about stacking contexts, margins, percentages and sticky positioning.
HTML & CSS · HTML & CSS Interview Questions
#gotchas#css#stacking-context
10 questions · ~8 min
Not started
Start
4
Web Accessibility Questions
Medium
Answer interview-style questions about alt text, ARIA, focus and color contrast.
HTML & CSS · HTML & CSS Interview Questions
#accessibility#aria#interview
10 questions · ~6 min
Not started
Start
5
HTML & CSS: Find the Bug
Hard
Spot why each small HTML or CSS snippet does not do what its author wanted.
HTML & CSS · HTML & CSS Interview Questions
#debugging#html#css
10 questions · ~8 min
Not started
Start
No quiz matches. Try another word or tag.
Popular this week
- 1 Semantic HTML MediumHTML Basics#semantics#accessibility
- 2 Input Types & Validation MediumHTML Forms & Accessibility#forms#validation
- 3 Labels & ARIA MediumHTML Forms & Accessibility#accessibility#aria
- 4 Meta Tags & SEO MediumHTML Forms & Accessibility#meta#seo
- 5 The Box Model MediumCSS Basics#box-model#box-sizing#margin-collapse