The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
src property
The address or URL of the a media resource (video, audio) that is to be considered.
![]() ![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: String
The address or URL of a media resource.
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.2
Remarks
This property overrides a source element if both are used in a document.
See also
- audio element
- audio object
- media
- source
- track element
- track object
- video element
- video object
- currentSrc
- How to use HTML5 to play video files on your webpage
- How to use HTML5 to Add an Audio Player to your Webpage
- Make your videos accessible with Timed Text Tracks
Show:

