Complete the code to set the base font size for mobile devices.
body { font-size: [1]; }The base font size for mobile devices is commonly set using 16px for readability and consistency.
Complete the media query to apply styles for screens wider than 600px.
@media (min-width: [1]) { body { background-color: lightblue; } }The media query uses min-width: 600px to target devices wider than 600 pixels, typically tablets and desktops.
Fix the error in the media query syntax for mobile-first design.
@media [1] (max-width: 599px) { p { font-size: 14px; } }
max-width without media type.min-width instead of max-width here.The correct syntax for media queries includes only screen and before the condition for better browser support and clarity.
Fill both blanks to create a mobile-first media query that changes the layout for larger screens.
@media [1] ([2]: 768px) { .container { display: flex; } }
The media query uses only screen and with min-width: 768px to apply styles on screens 768px and wider, following mobile-first approach.
Fill all three blanks to create a responsive font size that increases on larger screens.
html { font-size: [1]; } @media [2] ([3]: 900px) { html { font-size: 18px; } }The base font size is set to 16px for mobile. The media query uses only screen and min-width: 900px to increase font size on larger screens.