Andromeda
Note

Block Elements

Definition

Block Elements are HTML elements (like <div>, <p>, <h1>) that default to starting on a new line and taking up the full width of their parent container.

Why It Matters

They form the structural layout scaffolding of web design, allowing for the grouping and alignment of content sections.

Core Concepts

  • Block Examples: <h1>, <p>, <div>, <section>, <ul>.
  • CSS Override: display: block, inline, inline-block, or none changes default behavior.
  • Nesting Rule: Block elements can contain inline elements; inline elements should not wrap block elements.

Connected Concepts