When I create a new razor view in ASP.NET MVC4, the title is automatically enclosed in h2 tags:
@{
ViewBag.Title = "ViewPage1";
}
<h2>ViewPage1</h2>
I follow the rule that a page should have one h1 tag and the hierarchy of heading tags should be respected. I assume that the ASP.NET MVC team put some thought into this, so I’m wondering why they chose to markup the title with h2 instead of h1.
They didn’t put that much thought. That’s the first thing I change/delete when I create a new view.