<input type="checkbox" id="F" name="F" class="form-check" value="0" @if (str0[0] == 'T') { Html.Raw("checked"); } /> I have a problem with this syntax. "checked" show on top of page. anybody can help me?