14. Form control label is missing text

1.3.14.1.22.4.6 (AA)

Empty label incorrect example

Description: The form element has a label but text has not been added (label is empty).

Context: HTML without any content can clutter the HTML making it difficult for readers to scan through it properly. It should either be filled with content or removed entirely.

<label onclick="" for="css3menu-switcher"></label>        

How to fix it: Add the text for the form element within the label-tag or WAI-ARIA ‘aria-label’ or ‘aria-labelledby’ attribute that is already present.

<label onclick="" for="css3menu-switcher">Switch menu</label>          

Techniques: ARIA4F68