document head
The head element of an HTML page, which holds the title, meta tags, stylesheets and scripts but no visible content.
In more detail
Nothing in the head is shown on the page, but browsers, search engines and social sites read it. The order of tags affects which resources load first.
Example
In the App Router the Metadata API, next/font and next/script add head tags for you.Related terms
- meta tag — An HTML tag in the head that describes the page to browsers, search engines and social sites, such as its description.
- Metadata API — The Next.js way to set a page's title, description, OpenGraph and other head tags by exporting a metadata object or generateMetadata function.
- HTML — The markup language that describes the structure and meaning of a web page with elements such as <button>, <input> and <h2>.
Taught in
- Metadata API: Dynamic OpenGraph & Head Management — Next.js 15 & Modern App Router Architecture
- Image & Font Optimization: Zero Layout Shift Assets — Next.js 15 & Modern App Router Architecture
- Script Optimization: next/script & Lazy Third Parties — Next.js 15 & Modern App Router Architecture