Yes, my recollection was wrong. There are some landmarks that can be nested inside other landmarks and still be conveyed but <header> (ARIA role "banner") isn't one of them.
Using <header> elsewhere for developer convenience is fine but that's all it is.
Headings are especially helpful for screen reader users are especially helpful but their value for sighted users are often underestimated. Developers think that by putting something in a box and by its styling that people will understand what it is, what it's for, when using a heading to put a name on it would be very clarifying.
Re:The UX of HTML (2023)
by spirobelv2 on Saturday August 24, 2024 @01:59PM
(#41340019)
horrific ux. makes html harder to read for people that dont have the time to learn all this obscure bs.
and for screenreaders this will work maybe sometimes inconsistently. I hope visual llms solve it for our brothers and sisters with special needs. ( and for webscrapers)
BECAUSE THIS NONSENSE IS NOT SOLVING ANYTHING FOR ANYBODY
Edit: looks like that’s basically the WAI approach too, in that role=heading will default to aria-depth=2.