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

:focus

        इस Class द्वारा Elements की Focus Stage को Target किया जाता हैं। अधिकतर इसका इस्तेमाल Form Element के अलग-अलग Elements को Target करने के लिए किया जाता हैं। यह class मुख्यतः उन्हीं elements को target करती है जो keyboard के माध्यम से input लेते है

 

:focus

The Focus Stage of the Elements is targeted by this Class. Mostly it is used to target different elements of the form element. This class mainly targets those elements which take input through keyboard.

 

Example:

 

<html>

<head>

<style>

input:focus

{  

background-color:yellow;  

color:black;

}

</style>

</head>

<body>

<form>

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

Email : <input type=”email” name=”Email”> <br> <br>

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

</form>

</body>

</html>

 

error: Content is protected !!