---
title: "News Header"
description: "Introduces a news collection with its title and editorial context - kicker, dateline, topic links, or a newspaper masthead."
slug: "news-header"
---

import { DocPage, PageHeader, SkillPanel, SourceFiles, DocLink, SkillField, SkillText, SkillRow, ApiPill } from "../../lib/components/index";

<DocPage meta={meta}>

<PageHeader slug="news-header" title="News Header" component="news-header">
  Introduces a news collection with its title and editorial context - kicker, dateline, topic links, or a newspaper masthead. Part of the <DocLink href="website-news.html">News</DocLink> blocks.
</PageHeader>

<SkillPanel component="news-header">
  <SkillField label="Native basis">
<SkillText>A <code>&lt;header&gt;</code> with the title (<code>h1</code>), a <code>&lt;time&gt;</code> dateline and a <code>&lt;nav&gt;</code> of topic links - <code>aria-current</code> marks the current topic, the row scrolls on its own when it overflows.</SkillText>
  </SkillField>

  <SkillField label="Built from">
<SkillText><DocLink href="breadcrumb.html">Breadcrumb</DocLink>, <DocLink href="indicator.html">Indicator</DocLink>, <DocLink href="input.html">Input</DocLink>, <DocLink href="button.html">Button</DocLink>, <DocLink href="toggle-group.html">Toggle Group</DocLink>.</SkillText>
  </SkillField>

  <SkillField label="Web Platform APIs">
<SkillRow>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time" title="machine-readable dateline"><code>&lt;time&gt;</code></ApiPill>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current" title="the current topic"><code>aria-current</code></ApiPill>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/CSS/overscroll-behavior" title="the topic row scrolls in place"><code>overscroll-behavior</code></ApiPill>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment/Container_queries" title="the title scales"><code>Container queries</code></ApiPill>
  </SkillRow>
  </SkillField>

  <SkillField label="Classes">
<SkillRow>
    <code>.mk-news-header</code>
    <code>.mk-news-header-top</code>
    <code>.mk-news-header-kicker</code>
    <code>.mk-news-header-date</code>
    <code>.mk-news-header-title</code>
    <code>.mk-news-header-desc</code>
    <code>.mk-news-header-topics</code>
    <code>.mk-news-header-live</code>
    <code>.mk-news-header-tools</code>
  </SkillRow>
  </SkillField>

  <SkillField label="Data attributes">
<SkillText><code>data-variant="masthead"</code>; <code>aria-current</code> on the current topic link; <code>data-variant="bar"</code>, <code>data-wrap</code> on the topics; <code>.mk-news-header-live</code> (an Indicator dot + the update time), <code>.mk-news-header-tools</code>.</SkillText>
  </SkillField>
</SkillPanel>

```html example label="Default" hint="Kicker and dateline, the title, a line of editorial context and the topics - the current one underlined (aria-current)." previewStyle="align-items:stretch;"
<header class="mk-news-header">
  <div class="mk-news-header-top">
    <span class="mk-news-header-kicker">Newsroom</span>
    <time class="mk-news-header-date" datetime="2026-10-01">Thursday, 1 October 2026</time>
  </div>
  <h1 class="mk-news-header-title">Acme News</h1>
  <p class="mk-news-header-desc"
    >Product updates, company announcements and the stories behind them - written by the people who build Acme.</p
  >
  <nav class="mk-news-header-topics" aria-label="Topics">
    <a href="#" aria-current="page">All news</a>
    <a href="#">Product</a>
    <a href="#">Company</a>
    <a href="#">Engineering</a>
    <a href="#">Security</a>
    <a href="#">Press</a>
  </nav>
</header>
```

```html example label="Masthead" hint="data-variant='masthead': a newspaper front - serif title, centered, between rules; the topics sit in a double-ruled band." previewStyle="align-items:stretch;"
<header class="mk-news-header" data-variant="masthead">
  <div class="mk-news-header-top">
    <span class="mk-news-header-kicker">Vol. 12 · No. 274</span>
    <time class="mk-news-header-date" datetime="2026-10-01">Thursday, 1 October 2026</time>
  </div>
  <h1 class="mk-news-header-title">The Acme Times</h1>
  <p class="mk-news-header-desc">All the news that fits the product.</p>
  <nav class="mk-news-header-topics" aria-label="Sections">
    <a href="#" aria-current="page">Front page</a>
    <a href="#">Product</a>
    <a href="#">Company</a>
    <a href="#">Opinion</a>
    <a href="#">Archive</a>
  </nav>
</header>
```

```html example label="Category page, live" hint="A Breadcrumb above the title, a live line with a pinging Indicator dot, the topic row below - a category page during breaking news." previewStyle="align-items:stretch;"
<header class="mk-news-header">
  <nav class="breadcrumb" aria-label="Breadcrumb">
    <ol class="breadcrumb-list">
      <li class="breadcrumb-item"><a class="breadcrumb-link" href="#">Newsroom</a></li>
      <li class="breadcrumb-separator" aria-hidden="true">/</li>
      <li class="breadcrumb-item"><span class="breadcrumb-page" aria-current="page">Product</span></li>
    </ol>
  </nav>
  <h1 class="mk-news-header-title">Product news</h1>
  <p class="mk-news-header-desc">Every release, every fix, every experiment - as it happens.</p>
  <span class="mk-news-header-live"
    ><span class="indicator-dot" data-variant="destructive" data-animate="ping" role="img" aria-label="Live"></span
    ><strong>Live</strong> Updated <time datetime="2026-10-01T09:41">2 minutes ago</time></span
  >
  <nav class="mk-news-header-topics" aria-label="Product topics">
    <a href="#" aria-current="page">Releases</a>
    <a href="#">Roadmap</a>
    <a href="#">Experiments</a>
    <a href="#">Status</a>
  </nav>
</header>
```

```html example label="Bar" hint="data-variant='bar': one compact row for an app or a sidebar-less site - the title, the topics, and tools: a search Input, a Toggle Group view switch and a subscribe Button." previewStyle="align-items:stretch;"
<header class="mk-news-header" data-variant="bar">
  <h1 class="mk-news-header-title">Acme News</h1>
  <nav class="mk-news-header-topics" aria-label="Topics">
    <a href="#" aria-current="page">All</a>
    <a href="#">Product</a>
    <a href="#">Company</a>
    <a href="#">Security</a>
  </nav>
  <div class="mk-news-header-tools">
    <input
      class="input"
      type="search"
      data-size="sm"
      placeholder="Search news…"
      aria-label="Search news"
      style="width: 10rem"
    />
    <div class="toggle-group" role="group" aria-label="View" data-type="single" data-size="sm">
      <button class="toggle" aria-pressed="true" value="list" aria-label="List view"><i data-lucide="list"></i></button>
      <button class="toggle" aria-pressed="false" value="grid" aria-label="Grid view"
        ><i data-lucide="layout-grid"></i
      ></button>
    </div>
    <a class="btn" data-size="sm" href="#"><i data-lucide="bell"></i> Subscribe</a>
  </div>
</header>
```

```html example label="Many topics: scroll or wrap" hint="On a phone the topics do not fit. Top: the row scrolls - its end fades out under a › hint that is driven by the scroll itself and disappears once you reach the end (no script). Bottom: data-wrap on the topics breaks them onto lines instead." previewStyle="align-items:stretch;"
<div style="display: grid; gap: 2rem; width: 100%; max-width: 22rem">
  <header class="mk-news-header" data-topics-demo>
    <h1 class="mk-news-header-title">Scrolling</h1>
    <nav class="mk-news-header-topics" aria-label="Topics">
      <a href="#" aria-current="page">All</a>
      <a href="#">Product</a>
      <a href="#">Company</a>
      <a href="#">Engineering</a>
      <a href="#">Security</a>
      <a href="#">Design</a>
      <a href="#">Press</a>
      <a href="#">Events</a>
    </nav>
  </header>
  <header class="mk-news-header" data-topics-demo>
    <h1 class="mk-news-header-title">Wrapped</h1>
    <nav class="mk-news-header-topics" data-wrap aria-label="Topics">
      <a href="#" aria-current="page">All</a>
      <a href="#">Product</a>
      <a href="#">Company</a>
      <a href="#">Engineering</a>
      <a href="#">Security</a>
      <a href="#">Design</a>
      <a href="#">Press</a>
      <a href="#">Events</a>
    </nav>
  </header>
</div>
```

<SourceFiles component="news-header" section="css" />

</DocPage>
