title: Adding a CSS class to razor @Html.DisplayFor
body: <p>I want to set a new class for this part of my code, but it doesn't work correctly</p>
  
  <pre><code>@Html.DisplayFor(model =&gt; model.melk.Code, new { @class = "myClass" } )
  </code></pre>
  
  <p>Can anyone tell me where am I wrong? </p>