javascriptcssseo

Google SEO and hidden elements


Will google ignore words that are inside the elements that are set to "display: none" in css?

Example:

<div id="under_meny" style="display:none;">About Us | Contact Us</div>

It looks maybe a bit strange that I want to hide a menu like that, but there is a submenu. And will the user to activate it. But I do not want it to go beyond SEO.


Solution

  • Hide your menu with javascript on pageload. This way Google will still analyze your text. It ignores display:none elements, as well as elements whose textcolor is the same as background color, thus making it invisible to the human eye

    Sources: I read it in a book a long time ago. There are sites on the internet though on the topic