Forum Moderators: not2easy
DO NOT hide content for optimization purposes only, you might very well end up being penalized for that.
Images do NOT go between heading tags regardless.
<div class="intro-header">Blah</div> <img src="image-files/title-text.jpg" width="406" height="30" />
Images do NOT go between heading tags regardless.
Why not? I do it all the time.Because images are not titles and it is semantically incorrect to use them between title tags. Just because you CAN do something, doesn't mean it is the correct way to do it. SEs will not see anything but the image tag and what is in it.
By "heading tags" I thought we were discussing H1, H2, etc.
I was wondering if it is possible to use special CSS tags above h1 in order to use as a kind of Master Header.
An image does not belong between any level of heading tag be it an h1 or an h6.
<h1><img src="XYZ.gif" alt="The XYZ company"></h1>
Do you have any reference to that effect ?Of course it CAN be done! It WILL validate, but the w3c.org is just showing you an example. NOT coding semantically. SEs would expect to read something between the heading tags other than an image.
An h6 above an h1 is improper code syntax
however, it would be stupid to place an image on its own within heading tags
Firstly, the ultimate heading of a page is the title, therefore you may reasonably have as many H1 headings as you wish and undoubtedly you could have an H6 above the second H1.
... it would be stupid to place an image ...
... ignore idiots who tell you that this or that is wrong.
the SE's will happily read the alt attribute value and use it for header tag content.That's an important point, but I have noticed too many pages that have an alt="" attribute that is blank just so it passes the validator.
the title is not part of the semantic structure of the document.
Firstly, the ultimate heading of a page is the title, therefore you may reasonably have as many H1 headings as you wish and undoubtedly you could have an H6 above the second H1. Secondly, it is perfectly reasonable to place an H3 within the range of an H1, etc. therefore, following the logic from above, it is reasonable to use an H2-H6 as the first heading and use an H1 below it.