
To create a textbox, use @Html.TextBox helper method.
@Html.TextBox("FirstName", "Value Optional")
If the view is using Model and we need to create a textbox corresponding to the Model property, we can use @Html.TextBoxFor helper method
@Html.TextBoxFor(model => model.FirstName)
Or
@Html.EditorFor(model => model.FirstName)
The difference between @Html.TextBoxFor and @Html.EditorFor are following