Complete the code to make the image responsive by setting its width to 100%.
img {
width: [1];
}Setting width: 100% makes the image scale to the width of its container, making it responsive.
Complete the code to ensure the image keeps its aspect ratio by setting the height to auto.
img {
width: 100%;
height: [1];
}Setting height: auto keeps the image's original aspect ratio when the width changes.
Fix the error in the CSS to make the image responsive and not overflow its container.
img {
max-width: [1];
height: auto;
}Using max-width: 100% ensures the image never grows larger than its container, keeping it responsive.
Fill both blanks to create a responsive image that scales with its container and keeps aspect ratio.
img {
width: [1];
height: [2];
}Setting width: 100% makes the image fill its container width, and height: auto keeps the aspect ratio.
Fill all three blanks to create a responsive image with a max width, automatic height, and block display.
img {
display: [1];
max-width: [2];
height: [3];
}Setting display: block removes inline spacing, max-width: 100% limits image size to container, and height: auto keeps aspect ratio.