How do I ask/hint to Google not to index something on a page?
I have a web site that开发者_开发百科 mostly displays images that contain text. It is heavy with JavaScript. In a noscript tag we have the usual "You must have JavaScript enabled" message followed by the text extracted from the image. My problem is that Google indexes the "You must have JavaScript enabled" message. So when you get a hit on my site, this is in the description. I'd rather not have Google index this at all, but if I can at least get it out of the description that'd be great.
Thanks
Just provide your own description in <head>
.
<meta name="description" content="Lorem ipsum.">
This will appear in the site description in Google results. It can contain about 150 words.
See also:
- Changing your site's title and description in Google results
Also see SO question Display a “No Javascript” div, but not to google / facebook share servic, which I believe better answers my question.
精彩评论