how do you create an <h1> tag programmatically in ASP.NET?
You could also use:
<h1 runat="server" />
var h1 = new HtmlGenericControl("h1");
h1.InnerHtml = "header content";
You can use label or literal controls as shown below:
Label1.Text = "<h1>HI All</h1>";
Or
string heading = "HI All";
Label1.Text = string.Format("<h1>{0}</h1>", heading);