0
0
CSSmarkup~5 mins

Breakpoints in CSS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a breakpoint in CSS?
A breakpoint is a specific screen width where the layout or style of a webpage changes to better fit the screen size. It helps make websites look good on phones, tablets, and desktops.
Click to reveal answer
beginner
How do you write a simple CSS media query for a breakpoint at 600px?
You write:
@media (max-width: 600px) { /* CSS rules here */ }
This means the CSS inside applies when the screen is 600 pixels wide or smaller.
Click to reveal answer
beginner
Why are breakpoints important for responsive design?
Breakpoints let your website adjust its layout and style for different screen sizes. This makes your site easy to use on phones, tablets, and big screens without zooming or scrolling sideways.
Click to reveal answer
intermediate
What is the difference between max-width and min-width in media queries?
max-width applies styles when the screen is smaller than or equal to a size. min-width applies styles when the screen is larger than or equal to a size. They help target different device sizes.
Click to reveal answer
beginner
Give an example of a common breakpoint width used in CSS.
A common breakpoint is 768px, which often targets tablets. For example: <pre>@media (min-width: 768px) { /* tablet and larger styles */ }</pre>
Click to reveal answer
What does this media query do?
@media (max-width: 480px) { ... }
AApplies styles on screens taller than 480px
BApplies styles when the screen is wider than 480px
CApplies styles only on screens exactly 480px wide
DApplies styles when the screen is 480px wide or smaller
Which CSS feature is used to create breakpoints?
AMedia queries
BGrid
CFlexbox
DAnimations
If you want styles to apply only on large screens, which media query would you use?
A@media (max-width: 600px)
B@media (min-width: 1024px)
C@media (max-height: 800px)
D@media (orientation: landscape)
What is the main goal of using breakpoints in web design?
ATo add animations
BTo make websites load faster
CTo make websites look good on different screen sizes
DTo change font colors
Which unit is commonly used in breakpoints for media queries?
Apx (pixels)
Bem
C%
Dvh
Explain what a breakpoint is and why it is useful in web design.
Think about how websites change on phones versus desktops.
You got /3 concepts.
    Describe how to write a media query for a breakpoint at 768px and what it means.
    Use @media and max-width or min-width with 768px.
    You got /3 concepts.