<header> is wrapped as an inline element.

To display code as a standalone block element use <pre> tag as:

   <article>
      <h1>Article Heading</h1>
   </article>