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

:checked

      यह pseudo class ऐसे check boxes को target करने के लिए use की जाती है जो check किये गए है।

 

:checked

      This pseudo class is used to target check boxes that are checked.

 

Example:

 

<html>

<head>

<style>

input:checked

{  

width:20px;  

height:20px;

}

</style>

</head>

<body>

<form>

Male : <input type=”checkbox” name=”male”><br> <br>

Female : <input type=”checkbox” name=”female”><br><br>

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

</form>

</body>

</html>

 

error: Content is protected !!