# for attribute

The label attribute whose value matches the id of the control it labels.

## What is **`for` attribute**?

**`for` attribute** — The label attribute whose value matches the id of the control it labels.

Level: Apprentice · [More HTML terms at this level](https://www.ask-codey.com/glossary/subjects/html/apprentice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/for-attribute
