Hacker News new | ask | show | jobs
by robador 880 days ago
I've got to ask, the H1, why is the site name the main heading and not the title of the article?
1 comments

Mainly because it is recommended [1] to have only one h1 on a page. And my pages sometimes contain multiple articles.

It feels natural to me to have h1 be the site name. And have h2 be the content title. And it happens to work well when multiple unrelated articles or other kinds of content are on the page because then I use h2 for each of those.

[1]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/He...