# Label ## Introduction Use labels for all form fields. ## Quick start examples ### Component default [Preview the label component](http://govuk-frontend-review.herokuapp.com/components/label/preview) #### Markup #### Macro {% from 'label/macro.njk' import govukLabel %} {{ govukLabel({ "text": "National Insurance number" }) }} ### Label--with bold text [Preview the label--with bold text example](http://govuk-frontend-review.herokuapp.com/components/label/with bold text/preview) #### Markup #### Macro {% from 'label/macro.njk' import govukLabel %} {{ govukLabel({ "classes": "govuk-label--s", "text": "National Insurance number" }) }} ### Label--as page heading [Preview the label--as page heading example](http://govuk-frontend-review.herokuapp.com/components/label/as page heading/preview) #### Markup
Name | Type | Required | Description |
---|---|---|---|
text (or) html | string | Yes | Text or HTML to use within the label. If `html` is provided, the `text` argument will be ignored. |
for | string | Yes | The value of the for attribute, the id of the input the label is associated with. |
isPageHeading | boolean | No | Whether the label also acts as the heading for the page. |
classes | string | No | Optional additional classes to add to the label tag. |
attributes | object | No | Any extra HTML attributes (for example data attributes) to add to the label tag. |