By Rick Anderson, Taylor Mullen, and Dan Vicarel Razor is a markup syntax for embedding .NET based code into webpages. The Razor syntax consists of Razor markup, C#, and HTML. Files containing Razor generally have a .cshtml file extension. Razor is also found in Razor component files (.razor). Razor syntax is similar to the templating engines of various JavaScript single-page application (SPA) fra
![Razor syntax reference for ASP.NET Core](https://cdn-ak-scissors.b.st-hatena.com/image/square/03cace2126811e42cffeb31e206009477de69b7b/height=288;version=1;width=512/https%3A%2F%2Flearn.microsoft.com%2Fdotnet%2Fmedia%2Fdotnet-logo.png)