391 B
391 B
title, tags
| title | tags |
|---|---|
| Disable selection | interactivity,beginner |
Makes the content unselectable.
- Use
user-select: noneto make the content of the element not selectable. - Note: This is not a secure method to prevent users from copying content.
<p>You can select me.</p>
<p class="unselectable">You can't select me!</p>
.unselectable {
user-select: none;
}