Does google index pages with hidden divs?

馋奶兔 提交于 2019-11-27 07:36:35

It will be indexed but can be frowned upon by Google if you are hiding/showing content for SEO reasons. In other words, what Google sees should be what the user sees when clicking the link.

Aparently yes.

Nothing escapes the eye of sauron.

Poe's idea of using an "off stage" div (negative position) is widely used and is as well known to the Google bot as a div with display:hidden or visibility:none.

Here's how to do it:

Have all of your objects totally displayed and completely visible and right on stage in your HTML code, just as Google wants.... but THEN... have your javascript onload event apply the positioning that you want in the browser client.

The result... perfect SEO, and a perfect experience for the visitor.

As long as the hidden content is relevant to the page it should not appear to be spam.

I have put hidden text on pages, toggled visible text and when using a graphic for a heading I have a CSS hidden H1 heading for Google.

It's definitely OK, as I've done it many times without any SEO penalties.

I wouldn't hide it. If people don't want to read it they can skip over. When I've hidden text it doesn't seem to be seen by the Googlebot as well as text within regular html.

The best and satisfactory result, i found here.

Hidden text and links Hiding text or links in your content to manipulate Google’s search rankings can be seen as deceptive and is a violation of Google’s Webmaster Guidelines. Text (such as excessive keywords) can be hidden in several ways, including:

Using white text on a white background Locating text behind an image Using CSS to position text off-screen Setting the font size to 0 Hiding a link by only linking one small character—for example, a hyphen in the middle of a paragraph When evaluating your site to see if it includes hidden text or links, look for anything that's not easily viewable by visitors of your site. Are any text or links there solely for search engines rather than visitors?

However, not all hidden text is considered deceptive. For example, if your site includes technologies that search engines have difficulty accessing, like JavaScript, images, or Flash files, using descriptive text for these items can improve the accessibility of your site. Remember that many human visitors using screen readers, mobile browsers, browsers without plug-ins, and slow connections will not be able to view that content either and will benefit from the descriptive text as well. You can test your site’s accessibility by turning off JavaScript, Flash, and images in your browser, or by using a text-only browser such as Lynx. Some tips on making your site accessible include:

https://support.google.com/webmasters/answer/66353?hl=en

perhaps hiding your content is bad for SEO, but maybe you dont have to hide it.

Instead of using "display:hidden" just use creative positioning.

place your "hidden" content say 7680 pixels off the screen using "left: 7680px" or "margin-top: -7680px"

Then use your java script to change the positioning of the content as you wish.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!