Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> input:valid { background-color: yellow; } </style> </head> <body> <h3>A demonstration of the :valid selector.</h3> <input type="email" value="support@exampel.com"> <p>Try typing an illegal e-mail address, to see the styling disappear.</p> <p><strong>Note</strong>: The :valid selector is not supported in Internet Explorer 9 and earlier versions.</p> </body> <!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_sel_valid by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:14:08 GMT --> </html>
Result:
Try it Yourself - © w3schools.com