--- url: "https://www.w3.org/WAI/WCAG22/Techniques/html/H90" titulek: "H90: Indicating required form controls using label or legend | WAI | W3C" h1: "Technique H90:Indicating required form controls using label or legend" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 06:29:28" znaku: 4570 slov: 632 kodovani: "utf-8" sha256: "fbb64df7940e6ed65bd33ad4cb9fcec260a1450c81c4647f3706404c54cac9b2" --- # Technique H90:Indicating required form controls using `label` or `legend` ## About this Technique This technique relates to [3.3.2 Labels or Instructions](https://www.w3.org/WAI/WCAG22/Understanding/labels-or-instructions) (**Sufficient** when used with [G131: Providing descriptive labels](../general/G131)). This technique applies to HTML controls that use external labels. Techniques are examples of ways to meet Web Content Accessibility Guidelines (WCAG). They are **not required** to meet WCAG. Content can satisfy the normative requirements of WCAG even if it does not use any of the documented techniques. See [About WCAG Techniques](https://www.w3.org/WAI/WCAG22/Techniques/about). ## Description The objective of this technique is to provide a clear indication that a specific form control in a web application or form is required for successful data submission. A symbol or text indicating that the control is required is programmatically associated with the field by using the `label` element, or the `legend` for groups of controls associated via `fieldset`. If a symbol is used, the user is advised of its meaning before the first use. ## Examples ### Example 1: Using text to indicate required state The text field in the example below has the explicit label of "First name (required):". The `label` element's `for` attribute matches the `id` attribute of the `input` element and the `label` text indicates that the control is required. ``` ``` Note Some authors abbreviate "required" to "req.". There is anecdotal evidence that suggests this abbreviation is confusing. ### Example 2: Using an asterisk to indicate required state The text field in the example below has an explicit label that includes an asterisk to indicate the control is required. It is important that the asterisk meaning is defined at the start of the form. In this example, the asterisk is contained within an `abbr` element to allow for the asterisk character to be styled so that it is larger than the default asterisk character, since the asterisk character can be difficult to see for those with impaired vision. #### The CSS ``` .req {font-size: 150%} ``` #### The HTML ```

Required fields are marked with an asterisk (*).

...
``` ### Example 3: Using an image to indicate required state The text field in the example below has an explicit label that includes an image to indicate the control is required. It is important that the image meaning is defined at the start of the form. ```

required indicates that the information is required

...
``` ### Example 4: Indicating required state for groups of radio buttons or check box controls Radio buttons and checkboxes are treated differently than other interactive controls since individual radio buttons and checkboxes are not required but indicates that a response for the group is required. The methods used in examples 1-3 apply to radio buttons and checkboxes, but the indication of the required state should be placed in the `legend` element instead of the `label` element. ```
I am interested in the following (Required):
...
``` ## Related Resources *No endorsement implied.* - [HTML - `label` element](https://html.spec.whatwg.org/multipage/forms.html#the-label-element) - [HTML - `legend` element](https://html.spec.whatwg.org/multipage/form-elements.html#the-legend-element) ## Tests ### Procedure 1. For each required form control, check that the required status is indicated in the form control's `label` or `legend` . 2. For each indicator of required status that is not provided in text, check that the meaning of the indicator is explained before the form control that uses it. ### Expected Results - All checks above are true. Back to Top