<html>
<head>
<style>
input:invalid {
border: 2px solid red;
}
</style>
</head>
<body>
<h3>A demonstration of the :invalid selector.</h3>
<input type="email" value="supportEmail">
<p>Try typing a legal e-mail address, to see the styling disappear.</p>
<p><strong>Note</strong>: The :invalid selector is not supported in Internet Explorer 9 and earlier versions.</p>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_sel_invalid by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:11:41 GMT -->
</html>