SMALL SECTIONS. COMPLETE SOURCE.

Free HTML header and navigation snippets

Explore responsive website headers with mobile navigation, open HTML/CSS code and standalone Astro components. Choose a layout and preview it before downloading.

6 designs

Folio editorial header layout preview

Headers · DESIGN EDITION

Folio editorial header

A large editorial masthead with a warm paper palette, compact utility row and responsive section navigation.

Small vanilla JavaScript enhancement · MIT code
Studio line header layout preview

Headers · HTML + ASTRO

Studio line header

A slim, typography-led studio header with an inline project link and a restrained underline navigation.

Small vanilla JavaScript enhancement · MIT code
Local services header layout preview

Headers · HTML + ASTRO

Local services header

A two-level business header with contact details above a clear service navigation and appointment link.

Small vanilla JavaScript enhancement · MIT code
Restaurant wordmark header layout preview

Headers · HTML + ASTRO

Restaurant wordmark header

A centered serif restaurant wordmark with a dedicated booking link and a separate menu row.

Small vanilla JavaScript enhancement · MIT code
Shop category header layout preview

Headers · HTML + ASTRO

Shop category header

A shop header with an announcement strip, brand row and product-category navigation.

Small vanilla JavaScript enhancement · MIT code
Editorial masthead header layout preview

Headers · HTML + ASTRO

Editorial masthead header

A newspaper-style masthead with an issue line, strong publication name and section navigation.

Small vanilla JavaScript enhancement · MIT code
CHOOSING A SECTION

Using these headers

A header needs to establish the site identity and make the next page easy to find. These designs cover a studio, local services, a restaurant, a shop and an editorial publication. Each has its own hierarchy and responsive navigation, so choose by the content you actually need to show. The code uses semantic links, a native mobile-menu button and scoped CSS. You can copy a section into an existing HTML page or import its Astro component into a shared layout.

  • Keep the primary navigation short; secondary links can live in the footer.
  • Check long brand names and menu labels at mobile widths.
  • Replace every destination and set aria-current on the actual active page.
GOOD DESIGN, OCCASIONALLY.

Your next idea
could start here.

New templates, useful guides, and updates from us.
A little inspiration for whatever you’re building.