Important Notice:

Course Content
Float Property
0/1
Z-Index
0/1
CSS object-fit Property
0/1
CSS Visibility Property
0/1
CSS (Chapter 4) M2-R5.1
About Lesson

:disabled

      यह class ऐसे elements को target करती है जो disabled है। इसे मुख्यतः form elements के साथ use किया जाता है।

 

:disabled

      This class targets elements which are disabled. It is mainly used with form elements.

 

Example:

 

 

<html>

<head>

<style>

input:disabled

{  

background:color:red;

}

</style>

</head>

<body>

<form>

Name : <input type=”text” name=”Name”><br> <br>

Tel : <input type=”number” name=”Tel” disabled><br> <br>

<input type=”submit” value=”Submit”>

</form>

</body>

</html>

 

error: Content is protected !!