Audio control is missing
| Field | Value |
|---|---|
| Rule code | Audio_Controls_Missing |
| WCAG conformance level | A |
| WCAG success criterion | 1.4.2 Audio Control |
| Must be fixed at source | Yes |
Description
Each audio element that auto-plays must provide user controls to stop or start the audio. We found an element that auto-played but had no controls present. If any audio on a Web page plays automatically for more than 3 seconds, it should have controls made available to users.
How to fix
Check any elements that play audio. Each one needs to have a way to pause or stop playback and adjust the volume. Make sure the controls can be accessed by someone using assistive tools. Use a keyboard, screen reader, or other assistive tools to test the controls.
Include the controls attribute on <audio> elements to provide playback controls.
<audio src="example.mp3" controls></audio>
If a custom audio player is used instead of the <audio> element, it must include playback controls.