9609c04755
W3Schools 튜토리얼을 P-Reinforce v3.1 포맷으로 위키화(영어 본문, 한/영 섹션 헤더). - Topic_HTML: 59문서 (튜토리얼+예제, 레퍼런스/메타 제외) - Topic_CSS: 190문서 (메인 + Advanced/Flexbox/Grid/RWD 전체) - Topic_JavaScript: 120문서 (코어 언어; Temporal/DOM상세/BOM/WebAPI/AJAX/jQuery/Graphics 등은 후속) 각 폴더 00_INDEX.md(MOC) 포함. 코드 verbatim, 미확인분은 "Not found in source" 표기. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
102 lines
4.2 KiB
Markdown
102 lines
4.2 KiB
Markdown
---
|
|
id: html-favicon
|
|
title: "HTML Favicon"
|
|
category: "Frontend"
|
|
status: "draft"
|
|
verification_status: "conceptual"
|
|
canonical_id: ""
|
|
aliases: ["favicon", "link rel icon", "favicon.ico", "browser tab icon", "site icon"]
|
|
duplicate_of: ""
|
|
source_trust_level: "B"
|
|
confidence_score: 0.88
|
|
created_at: 2026-06-23
|
|
updated_at: 2026-06-23
|
|
review_reason: ""
|
|
merge_history: []
|
|
tags: ["html", "web", "frontend", "w3schools", "favicon", "head"]
|
|
raw_sources: ["https://www.w3schools.com/html/html_favicon.asp"]
|
|
applied_in: []
|
|
github_commit: ""
|
|
---
|
|
|
|
# [[HTML Favicon]]
|
|
|
|
## 🎯 한 줄 통찰 (One-line insight)
|
|
A favicon is a small image displayed next to the page title in the browser tab, added by placing a `<link rel="icon">` element in the document's `<head>`. [S1]
|
|
|
|
## 🧠 핵심 개념 (Core concepts)
|
|
- **What a favicon is** — a small image displayed next to the page title in the browser tab. [S1]
|
|
- **Design guidance** — since a favicon is a small image, it should be a simple image with high contrast. [S1]
|
|
- **How to add it** — use the HTML `<link>` element inside the `<head>` section (after the `<title>` element); favicons can be sourced from sites like favicon.cc or custom-created. [S1]
|
|
- **File placement** — put the favicon in the site's root directory or an `/images` folder. [S1]
|
|
- **Format support** — ICO, PNG, GIF, JPEG, and SVG favicon formats are supported across Edge, Chrome, Firefox, Opera, and Safari. [S1]
|
|
|
|
## 🧩 추출된 패턴 (Extracted patterns)
|
|
- **Favicon link pattern** — `<link rel="icon" type="image/x-icon" href="/images/favicon.ico">` placed in `<head>`. [S1]
|
|
- **Head-placement pattern** — the `<link>` goes after the `<title>` element. [S1]
|
|
|
|
## 📖 세부 내용 (Details)
|
|
A favicon is a small image displayed next to the page title in the browser tab. [S1]
|
|
|
|
**Adding a favicon**
|
|
Favicons can be sourced from sites like favicon.cc or custom-created images. A favicon is a small image, so it should be a simple image with high contrast. Place the favicon in your site's root directory or an `/images` folder, then add a `<link>` element to your HTML `<head>` section after the `<title>` element. [S1]
|
|
```html
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>My Page Title</title>
|
|
<link rel="icon" type="image/x-icon" href="/images/favicon.ico">
|
|
</head>
|
|
<body>
|
|
<h1>This is a Heading</h1>
|
|
<p>This is a paragraph.</p>
|
|
</body>
|
|
</html>
|
|
```
|
|
|
|
**Supported favicon file formats**
|
|
The guide includes a compatibility matrix showing support across Edge, Chrome, Firefox, Opera, and Safari: [S1]
|
|
|
|
| File format | Edge | Chrome | Firefox | Opera | Safari |
|
|
|---|---|---|---|---|---|
|
|
| ICO | Yes | Yes | Yes | Yes | Yes |
|
|
| PNG | Yes | Yes | Yes | Yes | Yes |
|
|
| GIF | Yes | Yes | Yes | Yes | Yes |
|
|
| JPEG | Yes | Yes | Yes | Yes | Yes |
|
|
| SVG | Yes | Yes | Yes | Yes | Yes |
|
|
|
|
**Key takeaway** — use the HTML `<link>` element to insert a favicon within your document's head section. [S1]
|
|
|
|
## 🛠️ 적용 사례 (Applied in summary)
|
|
The full HTML document with the favicon `<link>` above is the canonical applied example from the source. No external project/commit applications found in the source.
|
|
|
|
## 💻 코드 패턴 (Code patterns)
|
|
Favicon link in head (HTML):
|
|
```html
|
|
<head>
|
|
<title>My Page Title</title>
|
|
<link rel="icon" type="image/x-icon" href="/images/favicon.ico">
|
|
</head>
|
|
```
|
|
|
|
## ⚖️ 모순 및 업데이트 (Contradictions & updates)
|
|
No contradictions found in the source.
|
|
|
|
## ✅ 검증 상태 및 신뢰도
|
|
- **상태:** draft
|
|
- **검증 단계:** conceptual (실제 적용 사례 발견 시 applied/validated로 승격 가능)
|
|
- **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body)
|
|
- **신뢰 점수:** 0.88
|
|
- **중복 검사 결과:** 신규 생성 (New discovery)
|
|
|
|
## 🔗 지식 그래프 (Knowledge Graph)
|
|
- **상위/루트:** [[HTML Tutorial]]
|
|
- **관련 개념:** [[HTML Page Title]], [[HTML Images]], [[HTML Head]], [[HTML Introduction]]
|
|
- **참조 맥락:** Referenced when branding a page in the browser tab and bookmarks via a small icon.
|
|
|
|
## 📚 출처 (Sources)
|
|
- [S1] W3Schools — HTML Favicon — https://www.w3schools.com/html/html_favicon.asp
|
|
|
|
## 📝 변경 이력 (Change history)
|
|
- 2026-06-23: Initial draft synthesized from the W3Schools "HTML Favicon" page (Astra wiki-curation, P-Reinforce v3.1 format).
|