whatwg / whatwg/html

Can <header> represent headers in sectioning elements?

Open
#2,199 23 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

document conformance
Dominant language
HTML
Stars
9.4k
Forks
3.2k
Avg merge
3d 9h
Merged PRs (30d)
38

Description

Hi! As far as I can remember, <header> could be used in articles as well as in the body of a document. Currently there's no reference about it in the element's description, so I assume this is no longer a suggested use.

If that's the case, there's an example in "4.3.12 Usage summary" that shows the element inside an <article>, clearly being used to enclose header information for it.

In any case, I think it would be better if this is made clear in the description of the element, as it is in the description of <footer>, for example.

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.

Research direction

Start by reviewing the

element description and the “4.3.12 Usage summary” example mentioned in the issue, then read the comment thread for the current interpretation. Done means the specification clearly explains whether may represent headers in sectioning elements and uses consistent examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.