CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

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.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS