Complete the code to add a viewport meta tag for mobile-friendly design.
<meta name="viewport" content="width=[1], initial-scale=1">
The viewport meta tag with width=device-width ensures the page matches the device's screen width, making it mobile-friendly.
Complete the CSS property to make images responsive on mobile devices.
img { max-width: [1]; height: auto; }Setting max-width: 100% makes images scale down to fit their container, ensuring they display well on smaller screens.
Fix the error in the media query to apply styles only on screens smaller than 600px.
@media (max-width: [1]) { body { font-size: 14px; } }
The correct unit for screen width in media queries is px (pixels). Using '600px' targets screens up to 600 pixels wide.
Fill both blanks to create a flexible layout that stacks on small screens.
display: [1]; flex-direction: [2];
Using display: flex with flex-direction: column stacks items vertically, which is ideal for mobile layouts.
Fill all three blanks to create a responsive navigation menu that hides on small screens.
@media (max-width: [1]) { nav { display: [2]; } } nav { display: [3]; }
This media query hides the navigation menu (display: none) on screens smaller than 768px, while normally showing it as a flex container.