title: Mvc add id and css class in MVC Html.BeginForm()
body: <p>I am new to MVC.</p>
  
  <p>How I can add id and css class in MVC Html.BeginForm().</p>
  
  <p>This is html form.</p>
  
  <pre><code>&lt;form id="frmId" class="frmStyle"&gt;
      ...
  &lt;/form&gt;
  </code></pre>
  
  <p>I tried this but got error.</p>
  
  <pre><code>@Html.BeginForm("actionName", "controllerName", new {id="frmId", class = "frmStyle"})
  </code></pre>