In this article, I will show you custom validation in mvc, displaying image using css class for error message. The field-validation-error css class are applied to the ValidationMessageFor() and Validation-Summary-errors css are applied to the ValidationSummary().