-
H1 in a graphic
hi folks,
i come a cross quite some pages who have their headings (H1) show in a graphic, instead of just typed on a page. But when i switch CSS off, i see the exact headings (H1) in text, so they we're probally hidden behind the graphic.
They probally do this because they are using a nice bought font that their visoters don't have.
does google allow this? (coze they use the same text in the graphic as in the H1) Or do they see this a hidden text and u risk a slap on the vingers with it?
if my question wasen't clear, i can show an example
thnx in advance !
-
I don't know if is allowed or not, probably not but why you even think about it, just use h1 for what it is and you don't need to worry about anything. Allowed or not this can't make such a big diffrence in serps.
-
i wanna use H1 for what it is, notheing else.
for example, i have this favorite font, wich is a bought font, so there's a very small change that other people also have it in their font-list. I would like to use it for the style of my site (for the headings)
I saw this methode -graphic with the same text over the H1- and thought if this is an accept way, i could use it too.
but i never read anything about it so i thought i ask the experts it ..
-
kaching -
I have never read that this would harm rankings and in my opinion I think it would be acceptable to the search engines. If you are just mirroring the text in the H1 tag inside the graphic there should be no problems.
If you're using the hidden H1 to perform keyword stuffing however prepare to be penalised.
-
Graphical H1's
I wrote the code for this. I wrote an article on "Magic Buttons," the anchor text -> button variation on this theme here:
http://www.rustybrick.com/seo_articles_12.php
Much of the code is the same for "magic text." I use it on Camera Repair dot Com
There's also an article on alistapart. His code is easier to implement, but not as flexible.
Let me know if you're interested. I'll help you set it up if you're nice.
J.
Last edited by SEOJaimie; 12-28-2005 at 04:52 PM.
-
thnx , i'm going to look into that
-
Speed issues
Just be careful about speed. I know the stuff that SEOJaimie wrote does cache the images but none the less if you are still stuck in the world of tables then your users will see a second or two lag time as that image is loaded and the page is rendered.
I always suggest just using CSS to render your H# tags to look the way you want them. This way if google does start parsing javascript then they wont think you are trying to trick them.
-
I may attempt to fix this delay partially by allowing the user to specify images to cache before load. This could be integrated into the CMS. However, I do believe Matt is right that it waits until the page is loaded fully to render, which seems to lag. I'll revisit the problem soon.
-
Well the issue is actually rather simple. The image has no width and height.
So when a browser goes to render it the browser actually needs to load the image before it knows the size. Some browsers handle this better than others and move things around as the pages load.
The problem is actually multiple things.
1. The browser does not know the size of the image.
2. The image cannot be cached in the web servers memory because it is a php file that actually pulls the image from the hard drive (after a logic check to see if it is already cached).
3. Most people that do SEO move things around on the page so the Hx tag is most likely very high on the page if not the highest element. (This leads to bigger issues related to rendering as it seems to slow down the entire page from showing).
4. The browser starts out displaying a Hx tag but then using javascript searches the entire page for the Hx tags and replaces them with the code needed to display the image.
So there are just a lot of steps to do something that can very easily be done by adding in a css class to the Hx.
Maybe I just like to keep things simple.
-
Well the issue is actually rather simple. The image has no width and height.
^ Not entirely true. I wrote it Matt. There is a partial solution to this. Set the class of the h1 to be approximately the proper size in px. It won't jump anymore.
So when a browser goes to render it the browser actually needs to load the image before it knows the size. Some browsers handle this better than others and move things around as the pages load.
^ That makes it jump, but it doesn't make it lag. What makes it lag is the loading of the image after .onload.
The problem is actually multiple things.
1. The browser does not know the size of the image.
^True, but not the problem.
2. The image cannot be cached in the web servers memory because it is a php file that actually pulls the image from the hard drive (after a logic check to see if it is already cached).
^ Minor problem. Who cares?
3. Most people that do SEO move things around on the page so the Hx tag is most likely very high on the page if not the highest element. (This leads to bigger issues related to rendering as it seems to slow down the entire page from showing).
^ I don't do this, but I agree here.
4. The browser starts out displaying a Hx tag but then using javascript searches the entire page for the Hx tags and replaces them with the code needed to display the image.
^ This should be fast. The lag is on the onLoad issue. A possible fix to this is using the name attribute and doing a getElementsByName(). That's indexed by the browser as it's parsed, so there's no parsing. I tested this. Both IE and Firefox seem to work quickly in this regard.
So there are just a lot of steps to do something that can very easily be done by adding in a css class to the Hx.
Maybe I just like to keep things simple.
You do. I like toys.
But most of the lag is the onLoad issue. I'm going to benchmark the parsing of the HTML and see if it merits a change to getElementsByName. I'll post a followup.
J.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks