The Goal of creating custom htmlhelper is to reduce the
html content you write if you use the template many times as you can get data
and format it in html form , So Html Helper method acts as wrapper for data
and html as it returns string of html .
Creating HtmlHelper is simply using Extension Method ,
Like this
public static class MyCustomHtmlHelper
{
public static string CustomHtmlHelper(this HtmlHelper html,
string htmlContent)
{
return "<p>this my first html helper </p>";
}
}