<div class="form-group">
<!-- New Syntax -->
<label class="form-label" asp-for="Country"></label>
<select asp-for="Country" asp-items="Model.Countries" class="form-select shipping-country">
<option value="-1" disabled selected="@(string.IsNullOrEmpty(Model.Country))">Country</option>
</select>
<span asp-validation-for="Country"></span>
<!-- Original Syntax -->
@Html.LabelFor(x => x.Country, new { @class = "form-label" })
@Html.DropDownListFor(x => x.Country, Model.Countries.Prepend( new SelectListItem {
Text = "Country", Disabled = true, Selected = string.IsNullOrEmpty(Model.Country) }),
new { @class = "form-select shipping-country" } ) @Html.ValidationMessageFor(x => x.Country,
string.Empty)
</div>