Complete the code to import the Next.js Image component correctly.
import [1] from 'next/image';
The Next.js Image component is imported as Image from 'next/image'.
Complete the code to use the Image component with a source URL.
<Image src=[1] alt="A scenic view" width={600} height={400} />
The src prop requires a string URL wrapped in quotes, like "/scenic.jpg".
Fix the error in the Image component by completing the missing prop for accessibility.
<Image src="/logo.png" [1] width={100} height={100} />
title instead of altThe alt attribute is required for accessibility to describe the image content.
Fill both blanks to optimize the image loading behavior.
<Image src="/photo.jpg" width={800} height={600} [1]=[2] />
priority instead of loadingloading="eager" which loads immediatelySetting loading="lazy" defers loading the image until it is near the viewport, improving performance.
Fill all three blanks to create a responsive Image component with a fixed layout and custom sizes.
<Image src="/banner.png" layout=[1] width=[2] height=[3] alt="Banner image" />
layout="responsive" with fixed width and heightUsing layout="fixed" with explicit width and height sets a fixed size for the image.