HTML Blocks

Block Elements Explained

Block elements start on a new line and can contain other block and inline elements. They are used to structure the main building blocks of a page layout.

Creating Block Structures

<div class="container">
  <header>Header content</header>
  <main>Main content</main>
  <footer>Footer content</footer>
</div>