Bird
0
0

Consider a website using this CSS snippet:

medium📝 Analysis Q13 of 15
SEO Fundamentals - Technical SEO Basics
Consider a website using this CSS snippet:
@media (max-width: 600px) { body { background-color: lightblue; } }

What happens when you view the site on a phone with screen width 500px?
AThe background color stays the default
BThe background color changes to lightblue
CThe background color changes to darkblue
DThe site stops loading
Step-by-Step Solution
Solution:
  1. Step 1: Understand the media query condition

    The CSS applies styles when screen width is 600px or less.
  2. Step 2: Check device screen width against condition

    Phone screen is 500px, which is less than 600px, so styles apply.
  3. Final Answer:

    The background color changes to lightblue -> Option B
  4. Quick Check:

    Screen ≤ 600px triggers lightblue background [OK]
Quick Trick: Check if device width meets media query condition [OK]
Common Mistakes:
  • Ignoring the max-width condition
  • Assuming default color always shows
  • Thinking site will crash on small screens

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SEO Fundamentals Quizzes