` element that's inside a `` element). As with the `Html.ValidationMessage` method, the markup for the validation summary is always rendered; if there are no errors, no list items are rendered.
The summary can be an alternative way to display validation messages instead of by using the `Html.ValidationMessage` method to display each field-specific error. Or you can use both a summary and the details. Or you can use the `Html.ValidationSummary` method to display a generic error and then use individual `Html.ValidationMessage` calls to display details.
The complete page now looks like this example:
[!code-cshtml[Main](entering-data/samples/sample12.cshtml)]
That's it. You can now test the page by adding a movie but leaving out one or more of the fields. When you do, you see the following error display:
![Add Movie page showing validation error messages](entering-data/_static/image5.png)
## Styling the Validation Error Messages
You can see that there are error messages, but they don't really stand out very well. There's an easy way to style the error messages, though.
To style the individual error messages that are displayed by `Html.ValidationMessage`, create a CSS style class named `field-validation-error`. To define the look for the validation summary, create a CSS style class named `validation-summary-errors`.
To see how this technique works, add a `