Mobile app version of vmapp.org
Login or Join
Shelley277

: Is text that use CSS "user-select: none;" indexed and ranked by search engines? As I understand this CSS property it is used to prevent the user from accidentally selecting text and other elements

@Shelley277

Posted in: #Css #Indexing

As I understand this CSS property it is used to prevent the user from accidentally selecting text and other elements that are used for stylistic reasons, or are part of the user-interface (e.g. a clickable div with the text "Copy" or "Share" in it). So it seems reasonable that search engines would ignore these text elements in favour of selectable content. Is this a correct assumption?

Sources:

developer.mozilla.org/en-US/docs/Web/CSS/user-select https://drafts.csswg.org/css-ui-4/#propdef-user-select

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelley277

1 Comments

Sorted by latest first Latest Oldest Best

 

@Reiling115

Yes, I would think that user-select would only be for stylistic purposes. Search engines can read through the source & and the DOM without having to actually select text like a user would.
developer.mozilla.org/en-US/docs/Web/CSS/user-select
EDIT: here is a jsfiddle. if you view source and view the DOM, the content is still rendered normally. jsfiddle.net/0asekyyh/

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme