I am trying to follow the pattern from Microsoft's site: https://docs.microsoft.com/en-us/aspnet/core/blazor/forms-validation?view=aspnetcore-3.0 here is a snippet of their code ...
<p>
<label for="classification">Primary Classification: </label>
<InputSelect id="classification" @bind-Value="@starship.Classification">
<option value="">Select classification ...</option>
<option value="Defense">Defense</option>
<option value="Exploration">Exploration</option>
<option value="Diplomacy">Diplomacy</option>
</InputSelect>
</p>
I get a warning on each of my 'option' tags saying they cannot be nested inside element 'p'. Their example above gives the same warning :p
How do I eliminate that warning? I am using VS Pro 2019 Ver 16.2.0 Preview 3.0 updated 6/26/2019. Their example is from 06/13/2019 so also pretty recent.
Also their example is a .cshtml file but most examples I see use .razor extension. I tried changing mine to .cshtml and got the same warning. Which should I use or does it not matter?
InputSelect
isn't reecognized by the html validator (yet). – Henk Holterman