Favorites

HTML headingreset Global Attribute

headingreset
HTML Global AttributeThis global attribute is supported in some modern browsers, but not all.
Updated 22nd November 2026

The headingreset attribute stops heading offsets set on ancestors from applying inside an element, such as a dialog. It is experimental.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

Description

This is an experimental attribute. Chrome, Edge and Opera support it only behind the #enable-experimental-web-platform-features flag, and Firefox only behind a preference.

The headingreset global attribute is a boolean attribute that stops heading offsets from ancestors applying to the headings inside the element. When the browser works out the level of a heading by adding up the headingoffset values of its ancestors, it stops at the first element with headingreset, after adding that element's own headingoffset.

It is meant for content that starts a new outline, such as a <dialog> or a popover, which is shown above the page and should start again at level 1 even if it is placed inside an offset section.

<section headingoffset="2">
  <h1>Level 3</h1>
  <dialog headingreset>
    <h1>Level 1</h1>
  </dialog>
</section>

Syntax

<element headingreset>

Values

  • headingresetA boolean attribute: its presence resets heading offsets. An empty value or headingreset="headingreset" have the same meaning.

Example

<section headingoffset="2">
<h1>Level 3 heading</h1>
<button onclick="document.getElementById('dlg').showModal()">Open dialog</button>
<dialog id="dlg" headingreset>
<h1>Level 1 heading</h1>
<button onclick="this.closest('dialog').close()">Close</button>
</dialog>
</section>
Open in editor

Browser Support

The following information will show you the current browser support for the HTML headingreset global attribute. Hover over a browser icon to see the version that first introduced support for this HTML global attribute.

This global attribute is supported in some modern browsers, but not all.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee