How can I give custom name to HTML helper label? And how to apply style to it?
I want the label output to be like this:
In HTML we can achieve like this:
<label class="Color">Degree Title<span class="Text-danger">*</span><label>
But how can I achieve this through HTML helper Method Labelfor in ASP.NET MVC ?
I tried this code, but it display same text on browser Which I write here in quotes Degree Level <span class='Text-danger'>*</span> :
@Html.LabelFor(model => model.Level, "Degree Level <span class='Text-danger'>*</span> ", htmlAttributes: new { @class = "control-label"})
How to modify it?
