Label select | WordPress.org

[ad_1]

You can learn more about that CSS property here:

https://developer.mozilla.org/en-US/docs/Web/CSS/user-select

For elements like checkboxes, when a user clicks the label, it should also check the checkbox. However, sometimes the label itself might accidentally get selected, which is undesirable. The user-select: none prevents this by disabling text selection, while still allowing the label to be clicked for accessibility purposes.

If you’d prefer the label to be selectable, you can override this with your own custom CSS.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer