Obviously by doing this, we violate Google's recommendations and we run the risk of penalties. Here we refer to partially hidden text that becomes visible after an action by the user. It is used a lot in FAQs, for example, to scroll the answer to the question. It can also be a content snippet followed by “learn more” or “read more”. By clicking, the text appears in full. How do we set it up? There are several ways to implement hidden text on a web page. In CSS or in JavaScript, we use for example the CSS rule display:none or visibility hidden.
Otherwise, it is also possible to use the HTML TextArea tag. The method used by Shai Aharony The experiment was born out of a disagreement with a web developer. Shai Aharony's team fax list wanted to make hidden text visible, to which they were told that it wouldn't change anything since "Google reads the code anyway." But does it only take into account the code? A tool launched in 2014 by Google confirms the consideration of the user experience.
Indeed, Google does not only know how to read the code of a page, it can also see the display of the latter as an Internet user would see it. This is indeed what the “Explore like Google” tool and its “Explore and display” option suggest. (Search console > Explore > Explore like Google > Explore and view). Knowing that the hidden text is seen by Google, Shai Aharony wonders why Google would give it more importance. At the same time, Google does not only have access to the CSS and JavaScript resources of a page since it can see the rendering of a site.