<label for="idMussGleichWieForSein">YourLabel:</label>
<input type="number" id="idMussGleichWieForSein">
<p>YourLabel:</p>
<input type="number" id="num">
YourLabel:
| Feature | <label> | <p> (or other text elements) |
|---|---|---|
| Can be clicked to focus input | Yes | No |
| Associates text with input for screen readers | Yes | No |
| Default display behavior | Inline | Block |
| Improves form accessibility | Yes | No |
| Semantic meaning for forms | Yes | No |
Requires for attribute to link with input |
Yes | N/A |
Clickable without for if wrapped around input |
Yes | No |