--- 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 `

`, `

`, 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): `

London(9 million inhabitants)is the capital of England.

`. [S1] - Absolutely positioned tooltip: `

London9 million inhabitantsis the capital of England.

`. [S1] - Image tooltip (text can appear before OR after the image inside the same container): `
Car

A car is a...

`. [S1] - Colored, rounded, animated tag-style tooltip combining multiple utilities at once: `9 million inhabitants`. [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

London (9 million inhabitants) is the capital of England.

``` ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** 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).