Complete the code to make the page responsive by setting the viewport width.
<meta name="viewport" content="width=[1], initial-scale=1.0">
The device-width value tells the browser to match the screen's width, making the page responsive.
Complete the CSS media query to apply styles only on screens smaller than 600px.
@media (max-width: [1]) { body { background-color: lightblue; } }The media query with max-width: 600px applies styles when the screen is 600 pixels wide or less.
Fix the error in the CSS rule to make the image scale responsively.
img { width: [1]; height: auto; }Setting width: 100% makes the image fill its container and scale on different screen sizes.
Fill both blanks to create a responsive grid with two columns on wide screens and one column on small screens.
.container { display: [1]; grid-template-columns: repeat([2], 1fr); gap: 1rem; }Using display: grid with repeat(2, 1fr) creates two equal columns for wide screens.
Fill all three blanks to write a media query that changes the grid to one column on screens smaller than 600px.
@media (max-width: [1]) { .container { grid-template-columns: repeat([2], 1fr); display: [3]; } }
The media query targets screens up to 600px wide, setting one column with repeat(1, 1fr) and keeping display: grid.