Custom controls have associated labels

Label custom controls for accessibility.

About href="#about"

Custom interactive controls, like buttons or checkboxes, need clear labels so everyone, including users with disabilities, can understand their purpose. For example, if you create a custom button using a <div>, adding a label helps screen readers describe it properly. Using standard HTML elements like <button> is best, but if you use custom elements, ensure they are labeled clearly and can be accessed with a keyboard.

Related

Topics

On this page

Supporters

Thank you to these organizations for supporting Project ScanGov:

ScanGov

Government. Digital. Experience.

Get ScanGov