On this page
<head>
Prev: `<html>` | Up: landmarks | Next: `<body>`
Rel: landmarks, Document & Landmarks Guide
Ref: MDN Web Docs — <head>
Tags: #public #web #html #elements #landmarks #tier/core
Summary
Machine-readable document metadata container.
- Implicit ARIA Role:
none - DOM Interface:
HTMLHeadElement - Key Attributes:
(contains meta, title, link)
Notes & Best Practices
- Always put
<meta charset="utf-8">and the viewport meta tag first so browsers parse encoding and layout width immediately.
Example
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Page Title</title>
</head>
Linked from
Related notes
- tuts/html/elements/landmarks/body Linked here; links to this page; shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/html Linked here; links to this page; shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks Linked here; links to this page; shared tags: #elements, #html, #landmarks, #web
- tuts/html/elements/document_and_landmarks Linked here; shared tags: #elements, #html, #web
- tuts/html/elements/landmarks/article shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/aside shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/footer shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/header shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/main shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/nav shared tags: #elements, #html, #landmarks, #tier, #web