Skip to main content

Provide User Control for Auto-Playing Audio

Disabilities Affected: Cognitive, Visual
Success Criterion: 1.4.2
Level: A
If any audio on a web page plays automatically for more than 3 seconds, either a mechanism must be available to pause or stop the audio, or a mechanism must be available to control the volume independently from the overall system volume.

Why It Matters

Audio that starts playing automatically can interfere with screen reader audio output, making it difficult or impossible for blind users to navigate or understand the page. Unexpected audio can also be disruptive or startling for users, especially those with cognitive disabilities. Users must have control over auto-playing audio.

Fixing the Issue

Avoid automatically playing audio content. If audio must play automatically (e.g., background music, audio announcements), ensure it lasts less than 3 seconds or provide easily discoverable and operable controls to pause, stop, or adjust the volume of that specific audio source. Standard HTML5 <audio> or <video> elements with the controls attribute typically meet this requirement.


Good Code Example

Using the controls attribute provides user control:

  • <audio controls src="background_music.mp3">
      Your browser does not support the audio element.
    <video controls muted src="promo_video.mp4">
      Your browser does not support the video element.
    </video></audio>

Bad Code Example

Audio plays automatically on load without user controls:

  • <audio autoplay loop src="annoying_background_sound.mp3">
    </audio>
Search Ultimate Guide
Tablet displaying an eBook cover titled 'Integrating Accessibility Compliance Into Your Budget' by AccessiTREE. The cover features a digital tree with accessibility-related icons, symbolizing inclusive design and compliance.
Free eBook
Integrating Accessibility Compliance Into Your Budget
A Practical Guide for Healthcare Leaders Navigating the New HHS Ruling

Need Help with Compliance?
Our team is here to guide you through the process of meeting accessibility standards. Contact us today to get started.