---
id: w3css-tooltips
title: "W3CSS Tooltips"
category: "Programming_Language"
status: "draft"
verification_status: "conceptual"
canonical_id: ""
aliases: ["w3-tooltip", "w3-text", "W3.CSS 툴팁"]
duplicate_of: ""
source_trust_level: "B"
confidence_score: 0.86
created_at: 2026-07-04
updated_at: 2026-07-04
review_reason: ""
merge_history: []
tags: ["w3css", "css-framework", "w3schools", "tooltip"]
raw_sources: ["https://www.w3schools.com/w3css/w3css_tooltips.asp"]
applied_in: []
github_commit: ""
---

# [[W3CSS Tooltips]]

## 🎯 한 줄 통찰 (One-line insight)
W3.CSS tooltips require NO JavaScript whatsoever — the entire show/hide-on-hover behavior is pure CSS driven by the `w3-tooltip`/`w3-text` class pair, in sharp contrast to nearly every other interactive component in this tutorial series (dropdowns-click, accordions, tabs, modals, slideshows) which all depend on a JS toggle function. [S1]

## 🧠 핵심 개념 (Core concepts)
- **`w3-tooltip`** — the hoverable container (can be a `<p>`, `<div>`, or any element wrapping both the trigger text/image and the hidden tooltip text). [S1]
- **`w3-text`** — the tooltip's hidden content, revealed via CSS when the parent `w3-tooltip` is hovered. [S1]
- **No positioning by default** — the tooltip text appears inline unless explicitly given `position:absolute` via inline style, which then requires manual `left`/`bottom` placement. [S1]
- **Full utility-class composability** — `w3-tag` (pill shape), any `w3-color`, `w3-round-*`, `w3-tiny`/`w3-small`/`w3-large`/`w3-xlarge`, and `w3-animate-opacity` all apply directly to the `w3-text` element with no special-case rules. [S1]

## 📖 세부 내용 (Details)
- Basic tooltip (no JS): `<p class="w3-tooltip">London<span class="w3-text">(<em>9 million inhabitants</em>)</span>is the capital of England.</p>`. [S1]
- Absolutely positioned tooltip: `<p class="w3-tooltip">London<span style="position:absolute;left:0;bottom:18px" class="w3-text w3-tag">9 million inhabitants</span>is the capital of England.</p>`. [S1]
- Image tooltip (text can appear before OR after the image inside the same container): `<div class="w3-tooltip"><img src="img_car.jpg" alt="Car"><p class="w3-text">A car is a...</p></div>`. [S1]
- Colored, rounded, animated tag-style tooltip combining multiple utilities at once: `<span class="w3-text w3-tag w3-red w3-round-xlarge w3-animate-opacity">9 million inhabitants</span>`. [S1]

## ⚖️ 모순 및 업데이트 (Contradictions & updates)
- **JS 불필요라는 예외적 특성**: 이 챕터의 컴포넌트만 순수 CSS 호버로 동작하며, 이전 챕터들(드롭다운클릭/아코디언/탭/모달/슬라이드쇼)은 모두 JavaScript 토글 함수가 필요했다는 점이 대비됨. [S1]

## 🛠️ 적용 사례 (Applied in summary)
현재 발견된 실제 적용 사례가 없습니다 — 여러 유틸리티 클래스(w3-tag+색상+둥근모서리+애니메이션)를 하나의 span에 동시 결합하는 것이 W3.CSS 스타일 조합의 실전 마무리 사례다. [S1]

## 💻 코드 패턴 (Code patterns)
A pure-CSS tooltip requiring no JavaScript (HTML/CSS):
```html
<p class="w3-tooltip">London
  <span class="w3-text">(<em>9 million inhabitants</em>)</span>
  is the capital of England.
</p>
```

## ✅ 검증 상태 및 신뢰도
- **상태:** draft
- **검증 단계:** conceptual
- **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body)
- **신뢰 점수:** 0.86
- **중복 검사 결과:** 신규 생성 (New discovery)

## 🔗 지식 그래프 (Knowledge Graph)
- **상위/루트:** [[W3.CSS Tutorial]]
- **관련 개념:** [[W3CSS Modal]], [[W3CSS Tags]], [[W3CSS Code]]
- **참조 맥락:** UI Components 섹션 마지막 — Code & Miscellaneous 섹션의 코드(Code) 챕터로 이어짐.

## 📚 출처 (Sources)
- [S1] W3Schools — W3.CSS Tooltips — https://www.w3schools.com/w3css/w3css_tooltips.asp

## 📝 변경 이력 (Change history)
- 2026-07-04: Initial draft synthesized from the W3Schools "W3.CSS Tooltips" page (Astra wiki-curation, P-Reinforce v3.1 format).
