> For the complete documentation index, see [llms.txt](https://jen-hsuan-hsieh.gitbook.io/asp-net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jen-hsuan-hsieh.gitbook.io/asp-net/chapter1/1.1.the-complete-asp.net-mvc-5-course/14building-forms/142labels.md).

# 1.4.2.Labels

* 2 choices to change the label display:
  * 1.use data annotation

    ```
    [Display(Name = "Date or Birth")]
    public string Birthday { get; set; }
    ```
  * 2.Use HTML

    ```
    @using (Html.BeginForm("Create", "Customers"))
    {
    <div class = "form-group">
      @Html.LabelFor(m => m.Name)
      @Html.TextBoxFor(m => m.Name, new {@class = "form-control"})
    </div>
    <div class="form-group">
      <label>Date of Birth</label>
      @Html.TextBoxFor(m => m.Birthday, new { @class = "form-control" })
    </div>
    <div class="checkbox">
      <label>
          @Html.CheckBoxFor(m => m.IsSubscribeToNesletter) Subscribed to Newsletter
      </label>
    </div>
    }
    ```
