t css label for attribute css label for attribute .blue { color:blue; } @Html.LabelFor(m => m.Name, new { @class="blue" }) Difference Between Html.Label() and Html.LabelFor() For example, img[alt~="art"] will select images with the alt text “abstract art” and “art show”, but not “athlete starting a new sport” (which the “contains” selector would select). input:checked:after{} The :checked CSS pseudo-class selector represents any radio (), checkbox (), or option (