--- id: css-display title: "CSS Display" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["display property", "block vs inline", "display block", "display inline-block", "display none"] 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", "w3schools", "display", "layout", "block", "inline"] raw_sources: ["https://www.w3schools.com/css/css_display.asp"] applied_in: [] github_commit: "" --- # [[CSS Display]] ## π― ν μ€ ν΅μ°° (One-line insight) The `display` property controls layout by specifying whether an HTML element is treated as a block or an inline element. [S1] ## π§ ν΅μ¬ κ°λ (Core concepts) - **Layout control** β the `display` property is an important CSS property for controlling layout; it specifies whether an HTML element is treated as a block or an inline element. [S1] - **Block-level elements** β a block-level element ALWAYS starts on a new line and takes up the full width available (stretches out to the left and right as far as it can). Examples: `
`, `