CSS Property:
user-select:

Result:
The user-select property specifies whether the text of an element can be selected.
CSS Code:
div {
    
  user-select:auto;
      }
Click the property values above to see the result
W3Schools.com - Play it