In my site I currently use H1 and H2 to reflect that sub-page article's title. I am thinking of replacing the H1 and H2 text with dynamically rendered text, so I can make it fancier, while maintaining the text in the alt tag of the image. Right now I have: <h2>Rendering Dynamic Text with PHP and GD</h2> and want to replace the text with the following: <h2><img src="img/image.php?text=Rendering Dynamic Text with PHP and GD&px=18" alt="Rendering Dynamic Text with PHP and GD" border="0"></h2> Should I leave the image wrapped in the h2 tags, or remove them? Does anyone know how they would compare? -Rob A>
Hi there I think this is more correct, than using fancy scripts: <h2>Rendering Dynamic Text with PHP and GD</h2> <img src="img/image.php?text=Rendering Dynamic Text with PHP and GD&px=18" alt="Use another alt tag" border="0"> But if you only want to use the image, instead use the following: <img src="img/image.php?text=Rendering Dynamic Text with PHP and GD&px=18" alt="Rendering Dynamic Text with PHP and GD" border="0"> I think thats more correct... Any suggestions from other members?
all I know is that header tags are essential for seo, alt tags are weighted next to nothing. How about using the phark image replacement in your css file, this way you can still have header tags and use images where they should be. The method moves the tags off screen so they are not visible in a browser, butr are still picked up my text browsers, such as search engine bots. look here for the "phark revisited" image replacement. there are many more as well but from experience the "phark revisited" works the best. http://mezzoblue.com/tests/revised-image-replacement/index.php this may seem like hiding text which is against SE's TOS, but it is actually reccomended by the W3C as a way to give text to text only browsers. Besides the bots are not smart enough to figure this out yet and your really not hiding tons of keyword text, just simply adding a method to give the bots the correct keywords and be able to design your site using images.