@{ ViewData["Title"] = "Home Page"; }
<div class="text-center">
<h1 class="display-4">Welcome</h1>
<p>Learn about <a href="https://learn.microsoft.com/aspnet/core">
building Web apps with ASP.NET Core</a>.</p>
</div>
The symbol is primarily used within Razor views to indicate that the following code is C# code rather than HTML.
It acts as a signal to the Razor engine to interpret the code as server-side logic.