What is the proper usage of images in heading tags? Do I have to hide the actual text in a way or any other options? I guess the alt tags don't work for SEO, right?
| SitePoint Sponsor |
What is the proper usage of images in heading tags? Do I have to hide the actual text in a way or any other options? I guess the alt tags don't work for SEO, right?
Trend Blocker blocks curiosity-clicks to Twitter trends | Open All Trends opens all Twitter trends in a new tab


No you don't have to hide the text at all as long as the image makes sense as a h1 and isn't some fluffy dice.
};-) http://www.xhtmlcoder.com/
Thinking Web: Voices of the Community
> March 2013 - SitePoint forums: Spot the Error 3: Calling all Sleuths! Winner Announced!... She knows how to spot simple <code> errors but do you?
My concern is that, the text-image is not crawled by search engines.
Trend Blocker blocks curiosity-clicks to Twitter trends | Open All Trends opens all Twitter trends in a new tab

I think search engines do look at alt tags, but not in the same way as H1's obviously.
Yep, that's what I know. So what to do? I need to use gif's for my headings designwise.I think search engines do look at alt tags, but not in the same way as H1's obviously.
Trend Blocker blocks curiosity-clicks to Twitter trends | Open All Trends opens all Twitter trends in a new tab


Have you looked into using a plain text header with an empty SPAN element right after the opening <h1> tag, with the image being served as a background via CSS?
Sitepoint has an article on how to do this, called Accessible XHTML Headers (don't let the letters "XHTML" fool you, it works just fine on HTML 4.01).
Save the Internet - Use Opera | May my mother rest in peace: 1943-2009
Dan Schulz - Design Team Advisor | Follow me on Twitter
SitePoint References: HTML CSS JavaScript | Become A Guru
WordPress SEO Checklist | What WordPress Plugins Do You Use?
Web Standards Curriculum | Image Free Equal Height Columns
Yeah, SP is using the same method on this site..I doubted this may be incompatibe for some browsers (for the SP logo, but I'll use it many times not just once), but I'll check that article to confirm that. Thanks.Have you looked into using a plain text header with an empty SPAN element right after the opening <h1> tag, with the image being served as a background via CSS?
Trend Blocker blocks curiosity-clicks to Twitter trends | Open All Trends opens all Twitter trends in a new tab

There is also SIFR.![]()


Only browser I've seen it NOT work on is Internet Explorer for the Macintosh.
But that's a dead browser anyway. IE5+ (Win), Netcape 6+, Mozilla, FireFox, Opera, Safari, Konqueror, etc all support it.
Save the Internet - Use Opera | May my mother rest in peace: 1943-2009
Dan Schulz - Design Team Advisor | Follow me on Twitter
SitePoint References: HTML CSS JavaScript | Become A Guru
WordPress SEO Checklist | What WordPress Plugins Do You Use?
Web Standards Curriculum | Image Free Equal Height Columns
Bookmarks