R
R
Rustam Bainazarov2019-03-11 18:50:49
css
Rustam Bainazarov, 2019-03-11 18:50:49

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

2 answer(s)
A
Alex, 2019-03-11
@SmthTo

https://toster.ru/answer?answer_id=233386#answers_...
https://www.quora.com/How-do-search-engines-index-...

P
Puma Thailand, 2019-03-12
@opium

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 question

Ask a Question

731 491 924 answers to any question