What are HTML Helpers in MVC?

Technology CommunityCategory: ASP.NET MVCWhat are HTML Helpers in MVC?
VietMX Staff asked 3 years ago

HTML Helpers are like controls in traditional web forms. But HTML helpers are more lightweight compared to web controls as it does not hold viewstate and events. HTML Helpers returns the HTML string which can be directly rendered to HTML page. Custom HTML Helpers also can be created by overriding “HtmlHelper” class.