<html>
<head>
<style>
input:valid {
background-color: yellow;
}
</style>
</head>
<body>
<h3>A demonstration of the :valid selector.</h3>
<input type="email" value="support@example.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], Wed, 05 Jun 2019 14:28:00 GMT -->
</html>