docs(10_Wiki): W3Schools 위키화 — HTML/CSS/JavaScript(core)
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>
This commit is contained in:
@@ -0,0 +1,110 @@
|
||||
---
|
||||
id: html-headings
|
||||
title: "HTML Headings"
|
||||
category: "Frontend"
|
||||
status: "draft"
|
||||
verification_status: "conceptual"
|
||||
canonical_id: ""
|
||||
aliases: ["heading tags", "h1", "h2", "h6", "headings hierarchy", "HTML titles"]
|
||||
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", "headings", "semantics"]
|
||||
raw_sources: ["https://www.w3schools.com/html/html_headings.asp"]
|
||||
applied_in: []
|
||||
github_commit: ""
|
||||
---
|
||||
|
||||
# [[HTML Headings]]
|
||||
|
||||
## 🎯 한 줄 통찰 (One-line insight)
|
||||
HTML headings `<h1>`–`<h6>` express the importance and structure of content (not merely its size), with `<h1>` most important and `<h6>` least. [S1]
|
||||
|
||||
## 🧠 핵심 개념 (Core concepts)
|
||||
- **Six heading levels** — `<h1>` through `<h6>`. [S1]
|
||||
- **Importance, not size** — `<h1>` defines the most important heading; `<h6>` the least important. [S1]
|
||||
- **Browsers add margins** — browsers automatically add some white space (a margin) before and after a heading. [S1]
|
||||
- **Headings are for structure** — search engines use headings to index the structure and content of web pages; users skim them to grasp a page. [S1]
|
||||
- **Size is styled with CSS** — use the `style` attribute with `font-size` to change a heading's rendered size. [S1]
|
||||
|
||||
## 🧩 추출된 패턴 (Extracted patterns)
|
||||
- **One `<h1>` per page** — use `<h1>` for the main title (or logo). [S1]
|
||||
- **Logical hierarchy** — `<h1>` for page title → `<h2>` for section titles → `<h3>` for subsections, in order. [S1]
|
||||
- **Don't misuse headings for visuals** — do not use headings just to make text big or bold; use CSS for that. [S1]
|
||||
- **Resize via inline style** — `<h1 style="font-size:60px;">…</h1>`. [S1]
|
||||
|
||||
## 📖 세부 내용 (Details)
|
||||
**HTML Headings**
|
||||
HTML headings are titles or subtitles that you want to display on a webpage. They are defined with the `<h1>` to `<h6>` tags. `<h1>` defines the most important heading; `<h6>` defines the least important heading: [S1]
|
||||
```html
|
||||
<h1>Heading 1</h1>
|
||||
<h2>Heading 2</h2>
|
||||
<h3>Heading 3</h3>
|
||||
<h4>Heading 4</h4>
|
||||
<h5>Heading 5</h5>
|
||||
<h6>Heading 6</h6>
|
||||
```
|
||||
|
||||
> **Note:** Browsers automatically add some white space (a margin) before and after a heading. [S1]
|
||||
|
||||
**Headings Are Important**
|
||||
Headings are important. Search engines use the headings to index the structure and content of your web pages. Users often skim a page by its headings; it is important to use headings to show the document structure. `<h1>` headings should be used for main headings, followed by `<h2>` headings, then the less important `<h3>`, and so on. [S1]
|
||||
|
||||
> **Note:** Use HTML headings for headings only. Don't use headings to make text BIG or **bold**. [S1]
|
||||
|
||||
**Bigger Headings**
|
||||
Each HTML heading has a default size. However, you can specify the size for any heading with the `style` attribute, using the CSS `font-size` property: [S1]
|
||||
```html
|
||||
<h1 style="font-size:60px;">Heading 1</h1>
|
||||
```
|
||||
|
||||
**Heading reference table**
|
||||
|
||||
| Tag | Description |
|
||||
|---|---|
|
||||
| `<html>` | Defines the root of an HTML document |
|
||||
| `<body>` | Defines the document's body |
|
||||
| `<h1>` to `<h6>` | Defines HTML headings |
|
||||
|
||||
## 🛠️ 적용 사례 (Applied in summary)
|
||||
A typical applied structure (e.g. a travel guide) uses `<h1>` for the page title, `<h2>` for region/section titles, and `<h3>` for country/subsection titles — demonstrating heading hierarchy as document outline. No external project/commit applications found in the source.
|
||||
|
||||
## 💻 코드 패턴 (Code patterns)
|
||||
All six heading levels (HTML):
|
||||
```html
|
||||
<h1>Heading 1</h1>
|
||||
<h2>Heading 2</h2>
|
||||
<h3>Heading 3</h3>
|
||||
<h4>Heading 4</h4>
|
||||
<h5>Heading 5</h5>
|
||||
<h6>Heading 6</h6>
|
||||
```
|
||||
Resizing a heading with inline CSS:
|
||||
```html
|
||||
<h1 style="font-size:60px;">Heading 1</h1>
|
||||
```
|
||||
|
||||
## ⚖️ 모순 및 업데이트 (Contradictions & updates)
|
||||
The source stresses semantics over appearance: headings should encode document structure for search engines and users, not be repurposed to make text big or bold — use CSS `font-size` instead. [S1]
|
||||
|
||||
## ✅ 검증 상태 및 신뢰도
|
||||
- **상태:** draft
|
||||
- **검증 단계:** conceptual (실제 적용 사례 발견 시 applied/validated로 승격 가능)
|
||||
- **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body)
|
||||
- **신뢰 점수:** 0.90
|
||||
- **중복 검사 결과:** 신규 생성 (New discovery)
|
||||
|
||||
## 🔗 지식 그래프 (Knowledge Graph)
|
||||
- **상위/루트:** [[HTML Tutorial]]
|
||||
- **관련 개념:** [[HTML Paragraphs]], [[HTML Basic]], [[HTML Styles]], [[HTML Elements]]
|
||||
- **참조 맥락:** Referenced whenever structuring page content into titles and sections for readers and search engines.
|
||||
|
||||
## 📚 출처 (Sources)
|
||||
- [S1] W3Schools — HTML Headings — https://www.w3schools.com/html/html_headings.asp
|
||||
|
||||
## 📝 변경 이력 (Change history)
|
||||
- 2026-06-23: Initial draft synthesized from the W3Schools "HTML Headings" page (Astra wiki-curation, P-Reinforce v3.1 format).
|
||||
Reference in New Issue
Block a user