--- id: css-introduction title: "CSS Introduction" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["CSS", "Cascading Style Sheets", "stylesheet", "CSS intro", "web styling"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.89 created_at: 2026-06-23 updated_at: 2026-06-23 review_reason: "" merge_history: [] tags: ["css", "web", "frontend", "styling", "w3schools"] raw_sources: ["https://www.w3schools.com/css/css_intro.asp"] applied_in: [] github_commit: "" --- # [[CSS Introduction]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) CSS (Cascading Style Sheets) describes how HTML elements are displayed β€” controlling the design, layout, and display variations across different devices and screen sizes, ideally from a single external file. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **CSS = Cascading Style Sheets** β€” the language that describes how HTML elements are to be displayed on screen and other media. [S1] - **Purpose** β€” CSS defines styles for web pages, including the design, layout, and variations in display for different devices and screen sizes. [S1] - **Separation of concerns** β€” HTML holds content/structure; CSS holds presentation. [S1] - **External stylesheets** β€” styles can be stored in external `.css` files, so the look of an entire website can be changed by editing just one file. [S1] - **Efficiency** β€” CSS can control the layout of multiple web pages all at once. [S1] ## 🧩 μΆ”μΆœλœ νŒ¨ν„΄ (Extracted patterns) - **Rule pattern** β€” a CSS rule targets a selector and sets one or more `property: value;` declarations inside braces: `selector { property: value; }`. [S1] - **Single source of truth** β€” one external stylesheet referenced by many pages centralizes styling and avoids per-page duplication. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) **What is CSS?** CSS stands for **Cascading Style Sheets**. It describes how HTML elements are to be displayed on various media. [S1] **Why use CSS?** CSS is used to define styles for your web pages, including the design, layout, and variations in display for different devices and screen sizes. [S1] **CSS Saves a Lot of Work** CSS can control the layout of multiple web pages all at once. With an external stylesheet file, you can change the look of an entire website by changing just one file. [S1] **Demo example** The following stylesheet sets the page background color, centers and whitens the heading, and sets the paragraph font: [S1] ```css body { background-color: lightblue; } h1 { color: white; text-align: center; } p { font-family: verdana; font-size: 20px; } ``` ## πŸ› οΈ 적용 사둀 (Applied in summary) The demo stylesheet above is the page's own applied example: a complete set of rules styling `body`, `h1`, and `p`. No external project/commit applications found in the source. ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Basic CSS rule (language: CSS): ```css selector { property: value; property: value; } ``` Concrete example: ```css h1 { color: white; text-align: center; } ``` ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) No contradictions found in the source. ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual (μ‹€μ œ 적용 사둀 발견 μ‹œ applied/validated둜 승격 κ°€λŠ₯) - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.89 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[CSS Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[CSS Syntax]], [[CSS Selectors]], [[CSS Add External]], [[HTML CSS]] - **μ°Έμ‘° λ§₯락:** The entry point referenced whenever styling the presentation of any HTML page. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” CSS Introduction β€” https://www.w3schools.com/css/css_intro.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-06-23: Initial draft synthesized from the W3Schools "CSS Introduction" page (Astra wiki-curation, P-Reinforce v3.1 format).