CSS user select Property
CSS user-select Property
The user-select property is used to specify whether the text of an element can be selected or not. If you double-click on some text it will be selected or highlighted in the browser. This property can be used to prevent this.
Default Value:-
Its default value is auto.
Syntax:-
Its syntax is:- user-select: auto | none | text | all;
Further Explanation:-
Value | Description |
---|---|
auto | Text can be selected if the browser allows it. |
none | Prevent text selection. |
text | The text can be selected by the user. |
all | Text selection is made with one click instead of a double-click. |