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

:valid

      यह pseudo class ऐसे form elements को target करती है जिनके लिए validation perform होता है और जिनमें user द्वारा valid value input की गयी है।

:valid

        This pseudo class targets form elements for which validation is performed and in which a valid value has been input by the user.

Example:

<html>

<head>

<style>

input:valid

{  

background-color:gold;  

color:black;

}

</style>

</head>

<body>

<h1>Subscribe Us</h1>

<form>

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

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

</form>

</body>

</html>

 

error: Content is protected !!