Multimedia Fallback

ID

html.multimedia_fallback

Severity

low

Remediation Complexity

low

Remediation Risk

low

Remediation Effort

low

Resource

Reliability

Language

Html

Tags

reliability

Description

Flags a <video> or <audio> element that provides neither a media source nor any fallback content.

Rationale

A media element supplies its source either through a src attribute or through nested <source> children, and it should also hold fallback text for browsers that cannot play the media. An element with none of these renders an empty box and tells the user nothing.

<video></video>                                  <!-- FLAW — no source, no fallback -->

<video src="m.mp4"></video>                      <!-- OK — src attribute -->
<video><source src="m.mp4"></video>              <!-- OK — nested source -->
<video>Your browser does not support video</video> <!-- OK — fallback text -->

Remediation

Provide the media via a src attribute or one or more nested <source> elements, and include fallback text inside the element for user agents that cannot play it.