Refers to the `HtmlHelper` class for ASP.NET MVC views.
HtmlHelper
is a helper class specific to ASP.NET MVC. The platform includes extension methods for this class that can be used to render HTML markup given the model and other inputs.
The canonical example is the DisplayFor
method, which renders a display for a given model property. In Razor syntax, it looks like this, which renders the value of SomeProperty belonging to the current model class:
@Html.DisplayFor(model => model.SomeProperty)
The volume of methods available in HTML Helper is extensive, and they make use of data annotations (for string formatting and client-side validation). Their usefulness makes them a core part of the ASP.NET MVC framework.