DEV Community

Matt Ellen-Tsivintzeli
Matt Ellen-Tsivintzeli

Posted on

Alternative to H1 for website title

I have a heading for my website and a heading for my blog articles on the came page.

I know I should only use one h1 per page, and I want to use that for my blog article title.

What is the element I should use for the heading of my website?

My header is currently this:

<header>
      <h1>Matthew Ellen</h1>
      <p>Software Developer</p>
</header>
Enter fullscreen mode Exit fullscreen mode

Should I just use a p and style it like the h1? Is there a better element?

Also, I've read here that it is OK to have multiple h1 elements, if the document is structured correctly, e.g. h1 for the page and h1 for the article.

Does that make sense? Is it accessible?

Top comments (0)

👋 Kindness is contagious

If you found this post useful, consider leaving a ❤️ or a nice comment!

Got it