I was wondering what is the best way to use headers.
This is a good question. I have no clear answer but already had a thought on that.
Some people use h1 for their logo image across all pages and use it a 2nd time for the page topic.
I have problem with that because the two h1 don't have the same level. The title of the whole site (here written on a picture) should contains the title of the page; they are not two distinct things. The title of the page is part of the site, not something on its own.
Other websites might use h1 for the logo on the main page only. On all other pages h1 will belong to the name of the page topic.
I would agree with that if a website was a "linear media". But it's not. You may arrive on any page of the site with a search engine and so you'll miss the main title.
Or maybe some might use h1 for the logo on each page and then h2 once for the topic of each page.But then the h1 will be the same on each page and I doubt that is good?
Why so ? Is it a position in search engines issue? If yes I think indexing should not disturb the logical structure of a page. If there is an other reason I'd like to hear about it.
So which of these do you think is best?
I choose, actually, the last one but It could change
Logos which are images should not be inside an
they should be implemented as a background image on the body or a
or .
If there is an information on that logo it has to be in the html with the alt attribute correctly filed up. If this information was a text and that I would write it with an h1, the image has also its place in an h1.