--- id: html-block-and-inline title: "HTML Block and Inline" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["block-level elements", "inline elements", "display block", "display inline", "div vs span"] 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: ["html", "web", "frontend", "w3schools", "layout"] raw_sources: ["https://www.w3schools.com/html/html_blocks.asp"] applied_in: [] github_commit: "" --- # [[HTML Block and Inline]] ## π― ν μ€ ν΅μ°° (One-line insight) Every HTML element has a default display value β block-level elements start on a new line and take the full width, while inline elements flow within a line and take only the width they need. [S1] ## π§ ν΅μ¬ κ°λ (Core concepts) - **Default display value** β every HTML element has a default display value depending on what type of element it is. The two most common display values are block and inline. [S1] - **Block-level element** β always starts on a new line; browsers automatically add some space (a margin) before and after it; takes up the full width available. [S1] - **Inline element** β does not start on a new line; only takes up as much width as necessary. [S1] - **`
` and `
Hello World