To make text unselectable in HTML using CSS, you can apply the user-select property with the value none. Here’s how you can do it:
cssCopy code
.unselectable {
user-select: none;}
Then, apply the class to the element whose text you want to make unselectable:
html
Copy code
<p class=”unselectable”>This text cannot be selected.</p>
This will prevent users from selecting the text within that element.