title: validate html input in asp.net with MVC
body: <p>I am a beginner in MVC. I am trying to create a registration form.</p>
  
  <p>This is my view</p>
  
  <pre><code> &lt;div class="registrationForm"&gt;
            @using (Html.BeginForm("Registration", "Login", FormMethod.Post, new { enctype = "multipart/form-data" }))
            {
                &lt;p&gt;
                    &lt;input type="text" id="firstname" name="firstName" placeholder="First Name" class="radius mini" /&gt;
                    &lt;input type="text" id="lastname" name="lastName" placeholder="Last Name" class="radius mini" /&gt;
                &lt;/p&gt;
                &lt;p&gt;
                    &lt;input type="text" id="email" name="email" placeholder="Your Email" class="radius" /&gt;
                &lt;/p&gt;
                &lt;p&gt;
                    &lt;input type="text" id="remail" name="remail" placeholder="Re-enter Email" class="radius" /&gt;
                &lt;/p&gt;
                &lt;p&gt;
                    &lt;input type="password" id="password" name="password" placeholder="New Password" class="radius" /&gt;
                &lt;/p&gt;
                &lt;p&gt;
                    &lt;button class="radius title" name="signup" type="submit"&gt;Sign Up&lt;/button&gt;
                &lt;/p&gt;
          }
        &lt;/div&gt; 
  </code></pre>
  
  <p>I would like to validate all the input fields in the view. Could you please help me? Thanks in advance.</p>