website promotion banner
Free Stock Images
  • Create A Free Account
  • Download High-Res Stock Images For Free
  • +5 Million Images
Your Ad Here
HTML and CSS  Home HTML and CSS Tutorials Invisible Objects
rss

Invisible Objects

Author: Depiction.net More by this author


Use CSS's visibility property to make objects or elements on a page invisible.

Normally this feature is pointless, but it is an excellent way to improve your search engine rankings. This enables you to add or restate search terms on your page that are related to your site's topics, but make them invisible to visitors. If not made invisible, the extra words will affect the feel and appearance of the site. (A paragraph of nothing but search terms doesn't look good.) Even though visitors will not be able to see the text, search engines will be able to crawl it.

Google Yahoo

Start off by adding the following to the head section of your page. (between <head> and </head>)

Code:

<style type="text/css">
#invisibleobject {
     visibility: hidden;
}
</style>

Now add the following code anywhere in the body section of your page. Where it says content, add any text or objects that you want to make invisible.

Code:

<div id="invisibleobject">content</div>

That's it!



Rate this Material: Bad 1 2 3 4 5 Excellent
print this page tell a friend subscribe to newsletter subscribe to rss

Add comments to "Invisible Objects"