SEO : Comments

 

Comments were traditionally put on a page by the web designer as a note to himself, or someone else.

Like images, comments are for non-visual text browsers - which as you know by now includes our friends the search spiders.

 

Comments in search results

Note that you will often see non-visual text in search results. This is because the spider regards ALL text, visible or not, as page information.

Think about what this means... more opportunities to describe to the spider what is going on.

 

 

Example

HTML comments start with <!-- and end with -->

Anything inside these tags does not get shown to human visitors.

<html>
<head>
<title>Green Widgets</title>
<META name="description" content="Green Widgets for sale from Wonderful-Widgets.com, your no.1 resource for green widgets!">
<META name="keywords" content="green widgets, widgets for sale">
</head>

<body>

<!-- start the body text here -->

<H1>Green Widgets</H1>

<p>Green widgets first made an appearance in 1920, when the first green widget was
discovered by Sir Randolf Widget III. </p>

<!-- end the body text here -->

</body>
</html>

 

 

Writing comments for search engines

If spiders are reading and indexing our comments along with the other page content, we need to put our keywords inside them to help the search engine work out what our page is about.

Try different things. Some people report having success by placing a comment as the first thing the spider will get, even before the first HTML, like this:

<!-- green widget page-->

<html>
<head>
<title>Green Widgets</title>
<META name="description" content="Green Widgets for sale from Wonderful-Widgets.com, your no.1 resource for green widgets!">
<META name="keywords" content="green widgets, widgets for sale">
</head>

<body>

<!-- summary : page about green widgets, can also buy green widgets -->

<H1>Green Widgets</H1>

<p>Green widgets first made an appearance in 1920, when the first green widget was
discovered by Sir Randolf Widget III. </p>



</body>
</html>

 

 

How Google treats comments

The spider "eats" comments like ordinary page text, although it knows it is a comment so gives it slightly less priority. So again use your page keywords in comments.

But don't be surprised if you see your comment content in the search results, like this:

seo search results

 

 

seo-instructions

seo tips Do...

  • use 1 and 2 comments per page, no more
  • limit your comments to around 20 words
  • be descriptive in your comments (i.e. write more natural language that will mean something to a human readers)
seo mistakes Don't...

  • over do it - 1 or 2 short but descriptive comments per page will do
  • keyword 'stuff', ie. repeat your keyword over and over ... you will get penalized
  • repeat your description meta tag... use something different or you will get penalized
  • over do it - just inform, not spam.

 

 

 

search engine optimization book