Files
2nd/10_Wiki/Dev/Topic_HTML/HTML_Favicon.md
T
Antigravity Agent 1cfd3bbb56 docs(10_Wiki): 위키 구조 정리 — 언어 튜토리얼 카테고리 폴더 제거 + 신규 자산 동기화
Topic_CSS/Topic_HTML/Topic_JavaScript/Topic_Prompt/Topic_Comfyui 등 기존 카테고리 폴더를 정리하고,
Topic_Graphic/Dev 등 신규 산출물과 Topics 내부 세션/메모리 기록을 동기화.
2026-07-05 00:10:59 +09:00

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).