It’s common for the H1 to be used to apply the logo. I don’t want to say it’s standard practice, but it is a common design pattern.
The benefit for this is if the user have images turned off or is using a screen reader due to visual acuity issues, the h1 can still be used as a backup to provide the company name
Nope. It’s just a common design pattern. You can put it into any element you choose - the H1 is just common because if images are turned off, the standard h1 styling is in place by default.
Personally, I’m surprised they didn’t come up with a “logo” or “business identity” element when they developed the html5 spec, but they didn’t, which is why this design pattern is so common…
Well, I was checking a few pages (including this) and I see that they use the svg element, and it seem that past the test of turning-image-off.
But I think that I’ll try another text-based element (maybe em) at the moment. I really don’t have the experience to go with that svg stuff, anyways, thanks for taking time to answer me.
I would like to do it like here, but i have a few months on this, I don’t think that I could use the svg, not right now at least. The header is no a problem.
As you’ll see from that discussion, like so many things in HTML/CSS, there is not necessarily a right or wrong answer. The best solution depends on context - and sometimes just personal preference.
As we all know that heading tags are helpful in SEO. But as far this question is concerned, I would say if there is not any heading in that particular page or no text is available that can be written in h1 then we should use h1 for logo because when we do seo this h1 will be helpful for searching purpose. Otherwise div is the best substitute for logo.