Css :- required

    The :required selector selects form elements which are required.
    The :required selector only applies to the form elements: input, select and textarea.


<!DOCTYPE html> 
<html> 
 
<head> 
 <meta name="viewport" content="width=device-width, initial-scale=1"> 
 
 <style> 
  input:required { 
   background: green; 
  } 
 </style> 
 
</head> 
 
<body> 
 
 <input type="text" required> 
 
</body> 
 
</html>



Css :- required Css :- required Reviewed by Network security on May 13, 2019 Rating: 5

No comments:

Useful Information

Powered by Blogger.