In a simple way, user-selection
is used to control the content that can be selected on the site.
Values
User-select accepts four values:
text - text can be selected
element - text can be selected, being restricted to element boundaries
none - text can not be selected
auto - If the element contains editable text, such as an input element or element with editable content, the text can be selected. Other forms of selection are determined by the value of the parent node.
Examples
-moz-user-select: none;
-moz-user-select: text;
-webkit-user-select: none;
-webkit-user-select: text;
-ms-user-select: none;
-ms-user-select: text;
-ms-user-select: element;
-moz
, -webkit
, -ms
These "tags" in front of user-select
are referring to each browser.
-moz
to mozilla
-ms
to internet explorer
-webkit
for chrome
When to use
You can use it when you feel the need to control what content is selected on the site.
In this site it shows how the different types that user-select
works with.
This site has a table showing which browsers are supported and their versions.
References:
MSDN
MDN