I recently created a new ASP.NET MVC-5 web application using Visual Studio 2013. When I attempted to use the built-in login form and left the required fields empty, I noticed that the fields were not highlighted in red as expected.
https://i.sstatic.net/mxR82.png
After inspecting the generated markup, I found that fields with validation errors should have the class input-validation-error
. However, upon searching through the CSS files automatically generated in my ASP.NET MVC-5 application - particularly site.css, bootstrap.css, and bootstrap.min.css - I could not find a definition for input-validation-error
. Can anyone provide advice on how to highlight fields with red color when they have validation errors and why this is not the default behavior in ASP.NET MVC-5?