<!doctype html> <html> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.3/angular.min.js"> </script> <style> input.ng-invalid { background-color: lightblue; } </style> <body> <form ng-app="" name="myForm"> Email:<input name="tname" ng-model="text" required> </form> </body> </html>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more