---
id: html-head
title: "HTML Head"
category: "Frontend"
status: "draft"
verification_status: "conceptual"
canonical_id: ""
aliases: ["head element", "HTML metadata", "title element", "meta element", "viewport meta", "document head"]
duplicate_of: ""
source_trust_level: "B"
confidence_score: 0.90
created_at: 2026-06-23
updated_at: 2026-06-23
review_reason: ""
merge_history: []
tags: ["html", "web", "frontend", "w3schools", "head", "metadata"]
raw_sources: ["https://www.w3schools.com/html/html_head.asp"]
applied_in: []
github_commit: ""
---
# [[HTML Head]]
## π― ν μ€ ν΅μ°° (One-line insight)
The `
` element is a container for metadata (data about data) placed between `` and ``; its contents are not displayed on the page but define the document's title, character set, styles, scripts, and other meta information. [S1]
## π§ ν΅μ¬ κ°λ
(Core concepts)
- **`` = metadata container** β placed between the `` tag and the `` tag; metadata is data about the HTML document and is not displayed on the page. [S1]
- **`` is required** β defines the document title (text-only), shown in the browser's title bar / tab, and is very important for SEO. [S1]
- **`
```
**The HTML `` element**
The `` element defines the relationship between the current document and an external resource. The `` tag is most often used to link to external style sheets: [S1]
```html
```
**The HTML `` element**
The `` element is typically used to specify the character set, page description, keywords, author of the document, and viewport settings. The metadata will not be displayed on the page, but is used by browsers (how to display content or reload the page), by search engines (keywords), and other web services. [S1]
Define the character set: [S1]
```html
```
Define keywords for search engines: [S1]
```html
```
Define a description of your web page: [S1]
```html
```
Define the author of a page: [S1]
```html
```
Refresh document every 30 seconds: [S1]
```html
```
Setting the viewport to make your website look good on all devices: [S1]
```html
```
Example of `` tags inside ``: [S1]
```html
```
**Setting the viewport**
The viewport is the user's visible area of a web page. It varies with the device β it will be smaller on a mobile phone than on a computer screen. You should include the viewport `` element in all your web pages. It gives the browser instructions on how to control the page's dimensions and scaling. The `width=device-width` part sets the width of the page to follow the screen-width of the device (which will vary depending on the device). The `initial-scale=1.0` part sets the initial zoom level when the page is first loaded by the browser. [S1]
**The HTML `
```
**The HTML `` element**
The `` element specifies the base URL and/or target for all relative URLs in a page. The `` tag must have either an `href` or a `target` attribute present, or both. There can only be one single `` element in a document. [S1]
```html
HTML base Tag
```
**HTML head elements reference**
| Tag | Description |
|---|---|
| `` | Defines information about the document |
| `` | Defines the title of a document |
| `` | Defines a default address or a default target for all links on a page |
| `` | Defines the relationship between a document and an external resource |
| `` | Defines metadata about an HTML document |
| `
```
## βοΈ λͺ¨μ λ° μ
λ°μ΄νΈ (Contradictions & updates)
No contradictions found in the source.
## β
κ²μ¦ μν λ° μ λ’°λ
- **μν:** draft
- **κ²μ¦ λ¨κ³:** conceptual (μ€μ μ μ© μ¬λ‘ λ°κ²¬ μ applied/validatedλ‘ μΉκ²© κ°λ₯)
- **μΆμ² μ λ’°λ:** B (W3Schools β widely used educational reference, not a primary standards body)
- **μ λ’° μ μ:** 0.90
- **μ€λ³΅ κ²μ¬ κ²°κ³Ό:** μ κ· μμ± (New discovery)
## π μ§μ κ·Έλν (Knowledge Graph)
- **μμ/루νΈ:** [[HTML Tutorial]]
- **κ΄λ ¨ κ°λ
:** [[HTML Introduction]], [[HTML Responsive]], [[HTML Style Guide]], [[HTML File Paths]]
- **μ°Έμ‘° λ§₯λ½:** Referenced when defining document metadata, linking stylesheets/scripts, or configuring the viewport for responsive pages.
## π μΆμ² (Sources)
- [S1] W3Schools β HTML Head β https://www.w3schools.com/html/html_head.asp
## π λ³κ²½ μ΄λ ₯ (Change history)
- 2026-06-23: Initial draft synthesized from the W3Schools "HTML Head" page (Astra wiki-curation, P-Reinforce v3.1 format).