Audio, Video, or Object Tags Set to Autoplay

Audio, Video, or Object Tags Set to Autoplay

WCAG Focus: WCAG 1.4.2 (A), 2.2.2 (A)

When a WordPress page opens with an autoplaying video or background audio track, the sound immediately talks over a screen reader’s synthesized speech—making it impossible for blind users to hear navigation controls to turn the volume down.

Why This Pattern Violates WCAG

WCAG 1.4.2 Audio Control (Level A) mandates that if any audio plays automatically for more than 3 seconds, there must be an easily reachable mechanism to pause or stop it, or control its volume independently.

WCAG 2.2.2 Pause, Stop, Hide (Level A) applies similarly to autoplaying muted video that runs for over 5 seconds.

Code Comparison

Inaccessible Autoplay Media

<video autoplay loop src="/uploads/welcome-video.mp4"></video>

Compliant User-Initiated Playback

<video controls preload="metadata" poster="/uploads/welcome-poster.jpg">
  <source src="/uploads/welcome-video.mp4" type="video/mp4">
  <track kind="captions" src="/uploads/welcome.vtt" srclang="en" label="English">
</video>

How to Fix It in WordPress

  • Remove the autoplay attribute from <audio>, <video>, and <object> tags.
  • If muted background motion is truly essential, provide a prominent pause/stop button immediately adjacent to the player.

Finding This Issue Automatically

A single autoplay attribute buried in a Gutenberg video block or landing-page shortcode can derail an entire screen reader session. The WP ADA Compliance Check plugin flags autoplaying media and will automatically fix the issue by removing autoplay parameters from embedded audio and video elements.

WCAG References & Supporting Materials

WCAG Success Criteria

Supporting Documentation & Guides

Subscribe

Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

Cart Accessibility Tools
hide