Answer the question
In order to leave comments, you need to log in
Is text in pseudo-elements respected by crawlers?
It seems that the ::before and ::after pseudo-elements are decoration, so it’s as if they don’t exist in the DOM, you can’t get to them through JS. Therefore, their content does not exist for search robots either.
But then I discovered that some screen readers can read the text added to content, which puzzled me. Do Google/Yandex search robots still take into account the content of pseudo-elements with non-empty content?
The task is this: I wanted to replace the text of one of the items in the breadcrumbs with a visual hack using a pseudo-element, but this text (incorrect from a UX point of view) is important for SEO.
Answer the question
In order to leave comments, you need to log in
https://toster.ru/answer?answer_id=233386#answers_...
https://www.quora.com/How-do-search-engines-index-...
Go to Google webmaster and there is an opportunity to look at the site through the eyes of a robot and you can see what he sees and what not
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question