Razor is the first major update to render HTML in MVC3. Razor was designed specifically as a view engine syntax. It has one main focus: code-focused templating for HTML generation. Here’s how that same markup would be generated using Razor:
@model MvcMusicStore.Models.Genre
@{ViewBag.Title = "Browse Albums";}
The Razor syntax is easier to type, and easier to read. Razor doesn’t have the XML-like heavy syntax.
of the Web Forms view engine.