1cfd3bbb56
Topic_CSS/Topic_HTML/Topic_JavaScript/Topic_Prompt/Topic_Comfyui 등 기존 카테고리 폴더를 정리하고, Topic_Graphic/Dev 등 신규 산출물과 Topics 내부 세션/메모리 기록을 동기화.
4.1 KiB
4.1 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 | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| w3css-tabulators | W3CSS Tabulators | Programming_Language | draft | conceptual |
|
B | 0.87 | 2026-07-04 | 2026-07-04 |
|
|
W3CSS Tabulators
🎯 한 줄 통찰 (One-line insight)
Tabbed navigation has NO dedicated w3-tab* class family at all — it's fully assembled from primitives already covered in earlier chapters (w3-bar/w3-button for the clickable tab strip, plain display:none/display:block toggling for content panels), demonstrating that W3.CSS deliberately favors composing existing utilities over adding single-purpose components for every UI pattern. [S1]
🧠 핵심 개념 (Core concepts)
- Same-class content panels — all tab panels share one class (e.g.
city), and JS loops overgetElementsByClassNameto hide all before showing the target one. [S1] openCity()pattern — the canonical two-step JS: hide everything with the shared class, then set the target element'sdisplaytoblock. [S1]- Active-tab highlighting — mirrors the accordion pattern: loop over elements with a shared
tablinkclass, strip a color class from all, then add it toevt.currentTarget. [S1] - Vertical tabs — swapping the tab strip's container to
w3-sidebar w3-bar-blockturns horizontal tabs into vertical ones with zero change to the panel-toggling JS. [S1] - Closable tab content — reuses the
w3-display-container/w3-display-toprightoverlay-positioning pattern with an inlineonclick="this.parentElement.style.display='none'". [S1]
📖 세부 내용 (Details)
- Core toggle function:
function openCity(cityName) { var i; var x = document.getElementsByClassName("city"); for (i = 0; i < x.length; i++) { x[i].style.display = "none"; } document.getElementById(cityName).style.display = "block"; }. [S1] - Active-tab color highlighting variant:
tablinks[i].className = tablinks[i].className.replace(" w3-red", ""); ... evt.currentTarget.className += " w3-red";. [S1] - Vertical tab strip:
<nav class="w3-sidebar w3-bar-block w3-light-grey" style="width:130px"><button class="w3-bar-item w3-button" onclick="openCity(event, 'London')">London</button>...</nav>. [S1]
⚖️ 모순 및 업데이트 (Contradictions & updates)
- 현재까지 발견된 모순 사항 없음 (No contradictions found in available sources).
🛠️ 적용 사례 (Applied in summary)
현재 발견된 실제 적용 사례가 없습니다 — 이미지 갤러리에 탭 전환 로직을 그대로 재사용하는 "Tabbed Image Gallery" 패턴이 openCity() 함수의 범용성을 보여주는 실전 사례다. [S1]
💻 코드 패턴 (Code patterns)
The canonical tab-toggling JavaScript pattern reused throughout the chapter:
function openCity(cityName) {
var i;
var x = document.getElementsByClassName("city");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
document.getElementById(cityName).style.display = "block";
}
✅ 검증 상태 및 신뢰도
- 상태: draft
- 검증 단계: conceptual
- 출처 신뢰도: B (W3Schools — widely used educational reference, not a primary standards body)
- 신뢰 점수: 0.87
- 중복 검사 결과: 신규 생성 (New discovery)
🔗 지식 그래프 (Knowledge Graph)
- 상위/루트: W3.CSS Tutorial
- 관련 개념: W3CSS Sidebar, W3CSS Accordions, W3CSS Pagination
- 참조 맥락: UI Components 섹션 첫 항목 — 페이지네이션(Pagination) 챕터로 이어짐.
📚 출처 (Sources)
- [S1] W3Schools — W3.CSS Navigation Tabs — https://www.w3schools.com/w3css/w3css_tabulators.asp
📝 변경 이력 (Change history)
- 2026-07-04: Initial draft synthesized from the W3Schools "W3.CSS Navigation Tabs" page (Astra wiki-curation, P-Reinforce v3.1 format).