There is only one <head> per document, as the first child of <html>. Visible content belongs in <body>. Do not confuse <head> with <header>, which is a visible landmark inside the body.
Baseline · Widely available.
Core <head> support has been stable across browsers since about July 2015 (and much earlier in practice).
Deprecated · Obsolete attribute.
Do not use profile on <head>. It is obsolete — omit it and use <meta> / <link> instead.
Syntax
HTML Syntax
syntax.html
<head>metadata…</head>
Start and end tags may be omitted in some cases, but beginners should always write both. A normal document needs exactly one <title> inside <head>.
Reference
Attributes
Besides globals, MDN still documents one legacy attribute. Do not use it in new work.
Most head mistakes are putting visible content there, or confusing it with header.
structure
Only one <head>
A document has a single head as the first child of <html>. Do not nest or duplicate it.
content
No visible UI in head
Paragraphs, headings, and layout markup belong in <body>. Head is for metadata and resources.
naming
head ≠ header
<header> is a visible landmark. <head> never replaces it.
charset
Charset early
Place <meta charset="UTF-8"> within the first 1024 bytes so encoding is detected correctly.
obsolete
Skip profile
The profile attribute on head is obsolete. Omit it completely.
Compatibility
Browser Support
The <head> element is core HTML in every browser. It is not a Node.js, Deno, or Bun API.
✓ Baseline · Widely available
<head>
Widely available since about July 2015 (and long before). Chrome, Firefox, Safari, Edge, and Opera fully support the head metadata container.
98%Global support (approx.)
Google ChromeAll
Full support
Mozilla FirefoxAll
Full support
Apple SafariAll
Full support
Microsoft EdgeAll
Full support
OperaAll
Full support
Samsung InternetAll
Full support
Internet ExplorerAll
Supported
<head>Widely supported
Bottom line: Safe everywhere. Always include a clear title, charset, and viewport in new pages.
Remember
Key Takeaways
Role:<head> holds metadata and resource links — not visible UI.
Starter trio: charset, viewport, and one <title>.
Naming:<head> ≠ <header>.
Skip profile: obsolete — omit it.
One line: put metadata in <head>, put what users see in <body>.
UA style
Default CSS Settings
<head> is not rendered as page content. Typical user-agent treatment:
default.css
head {
display: none;
}
Do not try to style head for layout. Style elements inside body instead.
Frequently Asked Questions
The head element holds machine-readable metadata about the document — title, meta tags, stylesheets, scripts, and related resource links — before the visible body content.
Common children are title, meta, link, style, script, base, and noscript. Put visible content in body, not head.
Yes for normal HTML documents: include exactly one title inside head. It shows in the browser tab and often in search results.
head is invisible document metadata. header is a visible landmark inside body for introductory content such as a logo or navigation.
Set lang on the html element (for example html lang="en"). Do not put lang only on head.
No. profile on head is obsolete. Omit it. Use meta and link for modern metadata needs.