# Razor Syntax and Tag Helpers

Mix C# into HTML with Razor's @ expressions, code blocks, if and foreach, and let tag helpers such as asp-action and asp-route-id write your links.

![Cheat sheet: Razor Syntax and Tag Helpers](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/c70bbf00e4df4690b2a4e27523505857.webp)

- Category: ASP.NET Core
- Level: Journeyman
- Tags: asp-action, aspnet-core, Code Block (razor), c-sharp, HTML Encoding, razor, Razor Expression, Tag Helper
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/razor-views-razor-syntax-and-tag-helpers-cheat-sheet
