@Html.TextBoxFor(m=>m.UserEmail,new {@class="form-control",id="mail",@placeholder="Email",@chec-ktype="mail required"}) code like this will throw a exception for @chec-ktype。