Should Hidden Website Text Be Kept or Removed? First Identify Its Purpose and How It Is Hidden

ProcrustesPR

Hidden text on websites should not be removed indiscriminately or kept in every case. The key questions are whether the text is useful to users, whether it describes an image, and whether hiding it is simply part of how the interface works. Keyword-stuffed text hidden to manipulate rankings should be removed or rewritten; content users can expand to read can be kept; navigation labels should often be made visible instead. These principles are drawn from the articles and discussions cited here. They do not guarantee that every method of hiding content complies with current search policies.

ProcrustesPRProcrustesPRHow Should a CMS Handle Images? From Upload Optimization to Descriptions and URL Management

For Hidden Keyword Stuffing, Address the Content Itself

A 2008 article from awoo lists two examples of deceptive practices: hiding stuffed keywords with display:none, and making text invisible to visitors by using tiny text in the same color as the background. The problem is not simply the use of CSS, but deliberately hiding keyword-stuffed text where users cannot see it.

In 2015, Semrush recommended checking source code and CSS, removing abusive content, and rewriting to meet users’ needs when addressing a manual action for “hidden text or keyword stuffing.” That was guidance for handling such actions at the time; it should not be treated as a complete procedure for today.

  • If the content merely repeats search terms, remove or rewrite it rather than finding another way to hide it.
  • If the text is genuinely useful, prioritize making it readable to visitors rather than leaving it only in the source code.

Do Not Delete Expandable Content Just Because It Is Hidden

Semrush’s technical explanation uses “Read more” as an example: content with the hidden attribute still exists in the DOM, and code can remove that attribute to display it. In other words, temporarily hiding content is not the same as deleting it. If detailed explanations are collapsed simply to keep the interface organized, there is a reason to retain them.

However, being “still in the DOM” does not in itself establish how the content affects search rankings or accessibility. In the cited FAQ example, a questioner worries that collapsed answers might hurt rankings, but the discussion provides no answer confirming or ruling out that risk. It therefore cannot support a claim that a penalty is certain or that there is no problem at all.

Making Navigation Text Visible Is Another Option

In its 2021 discussion of vertical navigation, NN/g advised against showing only category icons while hiding their labels until users hover or click. Text reduces ambiguity and enlarges click targets; hidden labels require extra interaction or leave users guessing what icons mean.

For example, when category icons are unclear, displaying left-aligned labels with keywords at the beginning addresses the problem more directly than deleting the text. The article also allows for an exception: in applications used daily, consider showing labels by default while letting users familiar with the interface collapse them. It does not recommend applying this approach directly to websites people visit only occasionally.

Do Not Delete Text Versions of Images Just Because They Repeat Information

Forum opinions differ: some suggest that removing hidden text may be harmless if it adds no information, while others argue that text should be retained as long as it is meaningfully related to the icon. Another response specifically notes that alternative text does not need to provide new information; it can present the information in an image sprite as text.

When reviewing content, first check whether the text explains an image or a link’s purpose. Do not treat it as redundant merely because an image is already on screen. These discussions highlight the need to check what the text does, but they do not guarantee that keeping it will improve rankings or that every method of hiding it will make it readable by assistive technology.

ProcrustesPRProcrustesPRHow should images of different sizes on the same website be named?

Hidden text: perspectives from across the web

What should you do if hidden text for an image sprite does not match the image content?

First check whether the text actually describes the information conveyed by the image sprite. A forum response argues that alternative text can restate image information without creating additional information; however, if the text describes content that is not in the image, it is not a good example of alternative text and should be removed. This judgment applies when text serves as an alternative to the information in an image sprite. It does not mean that all text that differs from an image must be deleted.

Does hiding some content on mobile necessarily create a search risk?

Not necessarily. Hidden content alone is not enough to establish a search risk. Some forum participants consider hiding content for mobile devices a common practice, distinct from showing text only to search engines to manipulate rankings. However, a questioner in 2011 was unsure whether hiding content through media queries qualified as an exception. These discussions reflect views at the time and do not guarantee that such practices comply with current search policies.

Could removing hidden text next to icons cause accessibility or legal problems?

Possibly, but there is no universal answer. One forum participant warned that removing text could prevent blind users from accessing information. Any legal consequences would depend on local law. Before deciding whether to remove the text, check what information it provides and whether users have another way to access it. This comment alone cannot establish that a particular way of removing text is necessarily illegal. Nor can it guarantee that text hidden in a particular way is readable by assistive technology.

ProcrustesPRHow many image variants should you prepare, and how should you manage them?

References

  1. SEO作弊法(上)-不要欺騙搜尋引擎www.awoo.ai · 2008-05-06T03:20:18+00:00 — Source used in the article above.
  2. How To Identify and Fix a Google Penaltywww.semrush.com · 2015-04-07T15:00:58Z — Source used in the article above.
  3. Left-Side Vertical Navigation on Desktop: Scalable, Responsive, and Easy to Scanwww.nngroup.com · 2021-05-16T16:00:00+0000 — Source used in the article above.
  4. Using CSS sprites and hidden text - effect on SEO?webmasters.stackexchange.com — Discusses: Could removing hidden text next to icons cause accessibility or legal problems?
  5. HTML Hide Element: What Is the Hidden Attribute & How to Use Itwww.semrush.com · 2021-10-15T17:50:00Z — Source used in the article above.
  6. Using CSS sprites and hidden text - effect on SEO?webmasters.stackexchange.com — Source used in the article above.
  7. How Google reacts on display:none for CSS media query?webmasters.stackexchange.com — Discusses: Does hiding some content on mobile necessarily create a search risk?
  8. Using CSS sprites and hidden text - effect on SEO?webmasters.stackexchange.com — Source used in the article above.
  9. How Google reacts on display:none for CSS media query?webmasters.stackexchange.com — Discusses: Does hiding some content on mobile necessarily create a search risk?
  10. Using CSS sprites and hidden text - effect on SEO?webmasters.stackexchange.com — Discusses: What should you do if hidden text for an image sprite does not match the image content?
  11. Does google always downrank pages with hidden textswebmasters.stackexchange.com — Source used in the article above.

Related articles

How Should a CMS Handle Images? From Upload Optimization to Descriptions and URL ManagementHow should images of different sizes on the same website be named?How many image variants should you prepare, and how should you manage them?How do visual and short-form video trends in search results affect SEO?How can photography websites use SEO to increase visibility and attract clients?How can service and e-commerce websites improve search visibility? Start by distinguishing local needs from buying intentWhy optimize a website, and which tasks can be done for free?How can you use search results page features to attract traffic?
ProcrustesPR
ProcrustesPR