# Form elements must have labels

Source: https://www.fixreports.com/issues/label

WCAG 4.1.2 Name, Role, Value · Level A

Some form fields have no label, so screen reader users don't know what to enter.

## What this rule checks
Ensure every form element has a label.

## Why it matters
WCAG 1.3.1, 3.3.2 and 4.1.2 require form fields to have labels. Newsletter sign-up and search fields are common offenders.

## How to fix it
### On any website
1. Give each field a <label for="field-id"> element, or at minimum an aria-label.
2. Placeholder text alone does not count as a label.

### On Shopify
1. Give each field a <label for="field-id"> element, or at minimum an aria-label.
2. Placeholder text alone does not count as a label.

### On WooCommerce and WordPress
1. Give each field a <label for="field-id"> element, or at minimum an aria-label.
2. Placeholder text alone does not count as a label.

## How to check the fix
- Re-scan and confirm the label rule no longer fails.
- Click each label and check it focuses its field.

## Sources
- axe-core rule documentation (Deque): https://dequeuniversity.com/rules/axe/4.13/label
- Understanding WCAG 4.1.2 (W3C): https://www.w3.org/WAI/WCAG22/Understanding/name-role-value
