whatwg / whatwg/html

"headingoffset" attribute & "headingoffset" attribute in h1-h6 element

Open
#11,655 5 comments 1 reaction 1 assignee View on GitHub

@keithamus is already working on this.

Since Sep 12, 2025.

clarification
Dominant language
HTML
Stars
9.4k
Forks
3.2k
PR merge metrics
PR metrics pending

Description

What is the issue with the HTML Standard?

@keithamus

At present, in HTML Living Standard specification, the example that "headingoffset" attribute & "headingoffset" attribute is specified in h1-h6 element is not found.

I would like to confirm. Is the following understanding correct?

<body>
  <h1>This is a heading level 1</h1>
  <section>
    <h2>This is a heading level 2</h2>
      <section>
        <h1 headingoffset="2">This is a heading level 3</h1>
      </section>
      <section headingoffset="2">
        <h1>This is a heading level 3</h1>
        <h3 headingreset="headingreset">This is a heading level 3</h3>
      </section>
  </section>
    <h1 headingoffset="7" aria-level="2">This is a heading level 2</h1>
</body>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.