What is the primary purpose of the <Image> component in Next.js?
<Image>
To replace the standard <img> tag for all images.
<img>
Where should static assets like images and fonts be placed in a Next.js project?
In the styles folder.
styles
In the pages folder.
pages
In the components folder.
components
In the public folder.
public
What is the purpose of the next/font module?
next/font
How do you apply a font imported using next/font to your HTML?
Using the style attribute directly on the HTML tag.
style
Using the font-family CSS property.
font-family
By adding the font name to the next.config.js file.
next.config.js
Using the className property provided by the font import.
className
You have an image hosted on a CDN. How do you use the <Image> component to display it and ensure proper optimization?
Provide only the src attribute with the CDN URL.
src
Provide the src, width, and height attributes, and configure next.config.js to allow the image domain.
width
height
Provide the src attribute and let Next.js automatically determine the dimensions.
Use the standard <img> tag instead of the <Image> component.
This content is only available to registered users.Please register at the the home page.