ASP.NET MVC providers a number of HtmlHelper methods for rendering markup based on the view model.
The general strategy used by the helpers is:
- A helper that directly correlates to the input type renders without any additional decoration of the markup.
- The Editor(For) and Display(For) helpers may render addition CSS classes or specialized markup.
- When a complex type is passed to the Editor(For) and Display(For) helpers, then container markup surround each simple type within the complex type.