CSS :disabled Pseudo Selector Explained !

Published: 04 October 2021
on channel: Code Canvas
2,193
30

The :disabled pseudo-class selector provides conditional styling to HTML elements that can receive user input, when the elements have the disabled attribute. It is defined in the CSS Selectors Level 3 spec as a “UI element state pseudo-class”, meaning it is used to style content based on the user’s interaction with an input element.

Elements that can receive the disabled attribute include button, input, textarea, optgroup, option and fieldset. There are two valid syntaxes for setting this attribute: either disabled="disabled" or (in HTML5) simply the disabled Boolean keyword. An element is disabled if it can’t be activated (e.g. selected, clicked on or accept text input) or accept focus.

Such an element can be styled using the :disabled pseudo-class selector.

🔔 Subscribe for more videos like this : https://www.youtube.com/c/CodeCanvas?...

#css #css3 #csstricks


On this page of the site you can watch the video online CSS :disabled Pseudo Selector Explained ! with a duration of hours minute second in good quality, which was uploaded by the user Code Canvas 04 October 2021, share the link with friends and acquaintances, this video has already been watched 2,193 times on youtube and it was liked by 30 viewers. Enjoy your viewing!