HTML <input type="text"> Error Im getting

Soya

New member
Joined
Feb 28, 2020
Messages
2
Programming Experience
1-3
I want to attribute a type and name to a @Html.LabelFor

Is my syntax correct please, thank you!

HTML:
<div class="row">
    <div class="col-2">
        @Html.LabelFor(m => m.ModelName)
        <input type="text" id="ModelName" name="ModelName">
    </div>
 
Last edited by a moderator:
Back
Top Bottom