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>
5.0 KiB
id, title, category, status, verification_status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, created_at, updated_at, review_reason, merge_history, tags, raw_sources, applied_in, github_commit
| id | title | category | status | verification_status | canonical_id | aliases | duplicate_of | source_trust_level | confidence_score | created_at | updated_at | review_reason | merge_history | tags | raw_sources | applied_in | github_commit | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| css-text-spacing | CSS Text Spacing | Frontend | draft | conceptual |
|
B | 0.88 | 2026-06-23 | 2026-06-23 |
|
|
CSS Text Spacing
🎯 한 줄 통찰 (One-line insight)
CSS provides five text-spacing properties — text-indent, letter-spacing, line-height, word-spacing, and white-space — to control indentation, character/word/line spacing, and whitespace handling. [S1]
🧠 핵심 개념 (Core concepts)
text-indent— specifies the indentation of the first line in a text-block; negative values are permitted for leftward indentation. [S1]letter-spacing— specifies the space between the characters in a text; negative values are allowed. [S1]line-height— specifies the space between lines; negative values are not permitted. [S1]word-spacing— specifies the space between the words in a text; negative values are allowed. [S1]white-space— specifies how whitespace inside an element is handled; values includenormal,nowrap,pre,pre-line, andpre-wrap. [S1]
🧩 추출된 패턴 (Extracted patterns)
- First-line indent pattern —
text-indent: <length>;to indent the opening line of a block. [S1] - Character/word tracking pattern — adjust
letter-spacingandword-spacing(including negative values) to tighten or loosen spacing. [S1] - Line density pattern — use unitless
line-height(e.g.,0.8vs1.8) for tighter or looser line spacing. [S1] - No-wrap pattern —
white-space: nowrap;to prevent text from wrapping. [S1]
📖 세부 내용 (Details)
The page discusses five CSS properties for controlling text spacing: text-indent, letter-spacing, line-height, word-spacing, and white-space. [S1]
Text Indentation — "The CSS text-indent property is used to specify the indentation of the first line in a text-block." Negative values are permitted for leftward indentation. [S1]
p {
text-indent: 50px;
}
Letter Spacing — "The CSS letter-spacing property is used to specify the space between the characters in a text." Negative values are allowed. [S1]
h1 {
letter-spacing: 5px;
}
h2 {
letter-spacing: -2px;
}
Line Height — "The CSS line-height property is used to specify the space between lines." Negative values are not permitted. [S1]
p.small {
line-height: 0.8;
}
p.big {
line-height: 1.8;
}
Word Spacing — "The CSS word-spacing property is used to specify the space between the words in a text." Negative values are allowed. [S1]
p.one {
word-spacing: 10px;
}
p.two {
word-spacing: -2px;
}
White Space — "The CSS white-space property specifies how white-space inside an element is handled." This property can accept values including normal, nowrap, pre, pre-line, and pre-wrap. [S1]
p {
white-space: nowrap;
}
A summary table on the page lists each property with its description, linking to detailed CSS reference documentation for each spacing attribute. [S1]
🛠️ 적용 사례 (Applied in summary)
The page's own examples are the applied cases: first-line indentation, positive/negative letter spacing, tight vs loose line height, positive/negative word spacing, and a no-wrap whitespace rule. No external project/commit applications found in the source.
💻 코드 패턴 (Code patterns)
Spacing properties (language: CSS):
selector {
text-indent: <length>;
letter-spacing: <length>;
line-height: <number | length>;
word-spacing: <length>;
white-space: normal | nowrap | pre | pre-line | pre-wrap;
}
Concrete example:
p.big {
line-height: 1.8;
}
⚖️ 모순 및 업데이트 (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)
- 상위/루트: CSS Tutorial
- 관련 개념: CSS Text Transformation, CSS Text Alignment, CSS Text Decoration
- 참조 맥락: Referenced when tuning the spacing and whitespace handling of textual content.
📚 출처 (Sources)
- [S1] W3Schools — CSS Text Spacing — https://www.w3schools.com/css/css_text_spacing.asp
📝 변경 이력 (Change history)
- 2026-06-23: Initial draft synthesized from the W3Schools "CSS Text Spacing" page (Astra wiki-curation, P-Reinforce v3.1 format).