Get to know MDN better
The src property of the HTMLSourceElement interface is a string indicating the URL of a media resource to use as the source for the element.
It reflects the src attribute of the <source> element nested in an <audio> or <video> element. It has no meaning and is ignored when it is nested in a <picture> element.
A string; the URL of a source resource to use in the element.
| HTML # dom-source-src |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Oct 31, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.