Hi, I know that using invisible or hidden text is bad and can get your site penalized, but what about this? In your main.css you have .vis{display:none;} Then in your php file you use <div class="vis">Invisible Text Here</div> Would search engines pick up on this?
Yes, php does not make a difference. Don't try invisible text, you could get into some serious trouble.
I didn't mean php was different from html, i just meant would using that in htmll be noticed by a search engine
Nope. The hide class won't be noticed by search engines. Also, I don't think you will get banned or anything if you just hide lil bit of text .
If GoogleBot decides to ban people for CARING about people who use screen readers who take extra time on their layouts/sites (like myself) and make extraneous elements, offset them, providing CONTENT for people who cannot fully access it, then Google can blow me. Also, you should not use display:none for IR, either offset it using negative margins / pos relative / pos absolute, if you display:none it wont be readable in a screen reader.
Thank you soulscratch for echoing my sentiments exactly. However, you did forget to mention the Dark Side of this (as far as search engines are concerned). If you hide the text SPECIFICALLY to serve alternate content to the search engines that regular users wouldn't see, yoU can get your site de-listed. What do I mean? I mean hiding content that's not related to your Web page just to game the search engines. If you're selling baby clothes and you hide section of your page that contains keywords for Cialis, Viagra and so forth, there's going to be a problem, and you'll be paying the price for it.