--- id: howto-css-icon-buttons title: "How To - Icon Buttons" category: "Web_Recipes" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["font awesome button icons"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.78 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["howto", "css", "w3schools", "buttons", "icons"] raw_sources: ["https://www.w3schools.com/howto/howto_css_icon_buttons.asp"] applied_in: [] github_commit: "" --- # [[HOWTO CSS Icon Buttons]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) This is the general form of the "icon + optional text" pattern already seen specifically applied to downloads in `[[HOWTO CSS Download Button]]` β€” the same `` icon element works standalone inside a button (icon-only) OR immediately followed by a text label (icon+text), using the IDENTICAL `.btn` styling either way, confirming that "icon button" isn't a distinct component type but simply "any button whose content happens to include a Font Awesome `` tag." [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **Icon-only buttons** β€” `` β€” just the icon, no text. [S1] - **Icon + text buttons** β€” `` β€” icon followed by a space and label. [S1] - **Same `.btn` class serves both** β€” no separate CSS needed to distinguish icon-only from icon+text buttons. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) - `.btn { background-color: DodgerBlue; border: none; color: white; padding: 12px 16px; font-size: 16px; } .btn:hover { background-color: RoyalBlue; }`. [S1] - Icons shown: home, bars (menu), trash, close, folder. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) - **Download Button λ ˆμ‹œν”Όμ˜ μΌλ°˜ν™”λœ 버전**: `[[HOWTO CSS Download Button]]`μ—μ„œ 이미 λ‹€μš΄λ‘œλ“œ μ•„μ΄μ½˜ ν•˜λ‚˜μ— 적용된 "μ•„μ΄μ½˜+ν…μŠ€νŠΈ" νŒ¨ν„΄μ΄, 이 λ ˆμ‹œν”Όμ—μ„œλŠ” μ•„μ΄μ½˜ 단독 λ²„μ „κΉŒμ§€ 포함해 μ—¬λŸ¬ μ•„μ΄μ½˜(home/menu/trash/close/folder)에 걸쳐 λ™μΌν•œ .btn 클래슀둜 μΌλ°˜ν™”λœλ‹€λŠ” 점이 확인됨. [S1] ## πŸ› οΈ 적용 사둀 (Applied in summary) Home/Menu/Trash/Close/Folder 5개 μ•„μ΄μ½˜μ„ μ•„μ΄μ½˜ 단독, μ•„μ΄μ½˜+ν…μŠ€νŠΈ 두 κ°€μ§€ μŠ€νƒ€μΌλ‘œ 각각 μ œμ‹œν•˜λŠ” μ˜ˆμ œκ°€ μ›λ¬Έμ—μ„œ 직접 제곡됨. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Icon-only vs. icon+text buttons using the same class (HTML + CSS): ```html ``` ```css .btn { background-color: DodgerBlue; border: none; color: white; padding: 12px 16px; font-size: 16px; } .btn:hover { background-color: RoyalBlue; } ``` ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference) - **μ‹ λ’° 점수:** 0.78 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[W3Schools HOW TO]] - **κ΄€λ ¨ κ°œλ…:** [[HOWTO CSS Download Button]], [[HOWTO CSS Notification Button]] - **μ°Έμ‘° λ§₯락:** CSS Buttons μ„Ήμ…˜. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” How To - Icon Buttons β€” https://www.w3schools.com/howto/howto_css_icon_buttons.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "How To - Icon Buttons" recipe (Astra wiki-curation, P-Reinforce v3.1 format).