Update format
This commit is contained in:
@ -5,6 +5,9 @@ tags: interactivity,beginner
|
||||
|
||||
Makes the content unselectable.
|
||||
|
||||
- `user-select: none` specifies that the text cannot be selected.
|
||||
- This is not a secure method to prevent users from copying content.
|
||||
|
||||
```html
|
||||
<p>You can select me.</p>
|
||||
<p class="unselectable">You can't select me!</p>
|
||||
@ -15,8 +18,3 @@ Makes the content unselectable.
|
||||
user-select: none;
|
||||
}
|
||||
```
|
||||
|
||||
#### Explanation
|
||||
|
||||
- `user-select: none` specifies that the text cannot be selected.
|
||||
- This is not a secure method to prevent users from copying content.
|
||||
|
||||
Reference in New Issue
Block a user