HTML headingreset Global Attribute
The headingreset attribute stops heading offsets set on ancestors from applying inside an element, such as a dialog. It is experimental.
Description
#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
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.
Desktop





Tablets & Mobile





