Loading Depth Study
Preparing your workspace
Metadata communicates important information about pages to browsers, search engines, and social platforms.
Next.js provides metadata APIs that make it easier to define page titles, descriptions, canonical information, and social sharing metadata. Static pages can define fixed metadata, while dynamic routes can generate metadata based on the requested resource. Good metadata should describe the actual page content and remain consistent with the page's purpose. Metadata is useful for discoverability and sharing but does not guarantee search ranking.
Each public course page can generate a unique title, description, and social preview based on the course content.
import type { Metadata } from 'next';
export const metadata: Metadata = {
title: 'React Fundamentals',
description: 'Learn React from fundamentals to production patterns.'
};The page receives a descriptive browser title and metadata description.