Creating Custom Html Helper Methods
21 November 2015
HTML helper methods are used in Razor views to generate HTML markup in a strongly-typed, C-sharpy way. An example is `@Html.LabelFor(m => m.Name)`, which is used in a strongly-typed view whose model has a Name property. This will generate a label element with the appropriate display name. In this post we will learn how to create a custom HTML helper.