To comment in the code block of Razor view, we use the same syntax as we use in C#. Like for single line // and for multiline /* and */.
// Single line comment
/* * multi * line * comment */
To comment, HTML along with other code, we need to use razor comment block that starts with @* and ends with *@.
@*Views: 10316 | Post Order: 11
This is @fileName logo.
<p>Sum is @(a + b)</p>