/*By Jiangong SUN*/
Search Engine Optimisation(SEO) is a very important concept for page ranking in search engines like Google, Baidu. In fact, if your page is not displayed in the first few pages results for some keywords, it will never be visited or much less visited even if it contains a lot of useful information.
1) use "meta" tags
Content type is used to detect which character set should be used by browsers.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Showroom Accessoires Citroen</title>
<meta name="description" content="Espace accessoires Citroen Présentation de la gamme accessoires citroen" />
Example for title tag and meta description tag:
Html code:
Keywords is not used by google and other search engines for years because of web master's abusement. But it's still need to used in your pages because it won't decrease your page ranking at least. It's recommended to use 10 to 15 keywords without duplicate. And the principle is always putting the most important keywords at the beginning.
<meta name="keywords" content="citroen accessoires, accessoires citroen, parfum d'ambiance, attelage, jeu de tapis, barre de toit" />
<meta name="robots" content="NOINDEX, NOFOLLOW">equals to:
<meta name="robots" content="NONE">If a specific link doesn't want to be followed by search engine, link NOFOLLOW should be used.
<a href="index.html" rel="nofollow">Index</a>Snippet is used to display the description tag under page title in SERP. The description information won't be displayed with the following code:
<meta name="robots" content="NOSNIPPET">If you don't want your page content to be cached in search engine, you can use the following code:
<meta name="robots" content="NOARCHIVE">And this code will just prevent your page content from being cached by google search engine
<meta name="googlebot" content="NOARCHIVE">
<img src="seo-optimisation-practices.jpg" alt="seo optimisation practices" />
<script type="text/javascript"> document.write("text!"); window.open("http://blog.csdn.net/garcon1986"); </script>
But if your have a lot of javascript code, you'd better put it in a separate file.
5) canonical url
If you have a CMS web site, you page will be accessed with different urls as long as they have last part of urls. In this situation, search engine will index the different urls which hold the same content which is not a good practice for SEO.
Canonical url is introduced for solving this problem. The url indexed by search engine will be the one indicated in canonical url.
<link rel="canonical" href="http://blog.csdn.net/garcon1986" />
For example:
Allow indexing for everything:
User-agent: * Disallow:Disallow indexing for everything:
User-agent: * Disallow: /
You have also other options for configuring your personal indexing rules. You can take a look at the robots.txt in google.fr
I hope this post can do some help in understanding search engine optimisation techniques.
Enjoy coding!
reference: http://www.google.fr/robots.txt