title: .NET MVC - How to assign a class to Html.LabelFor?
body: <p>This code</p>
  
  <pre><code>&lt;%= Html.LabelFor(model =&gt; model.Name) %&gt;
  </code></pre>
  
  <p>produces this</p>
  
  <pre><code>&lt;label for="Name"&gt;Name&lt;/label&gt;
  </code></pre>
  
  <p>But I want this</p>
  
  <pre><code>&lt;label for="Name" class="myLabel"&gt;Name&lt;/label&gt;
  </code></pre>
  
  <p>How do you do that?</p>