A header introduces a page or section. A page header usually sits at the top and contains a title, often alongside a logo and tagline. The introductory content goes between <header> and </header>. section 4.2.1 section 7.3.2
Ask for a book club header
Try this prompt: “Add a header element that includes an image named logo.png, the title ‘Code & Prose’, and the tagline ‘Diving deep into the narrative side of code’.” section 4.2.1
<header>
<img src="logo.png" alt="Code & Prose logo">
<h1>Code & Prose</h1>
<p>Diving deep into the narrative side of code</p>
</header>
The generated HTML places the logo image, title heading, and tagline paragraph inside the header tags. section 4.2.1
You can give the header a different background color to set it apart. Specify that color, the title and tagline styles, and a maximum page width when requesting CSS; limiting width helps keep lines readable. On a multipage site, a navigation element may follow the header or sit inside it. section 4.2.1 section 4.2.6 section 12.2.1 section 7.1

