A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/en-US/docs/Web/API/HTMLSourceElement/src below:

HTMLSourceElement: src property - Web APIs

HTMLSourceElement: src property

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.

Value

A string; the URL of a source resource to use in the element.

Examples
<source
  id="el"
  src="large.webp"
  type="video/webp"
  media="screen and (600px <= width <= 800px)" />
const el = document.getElementById("el");
console.log(el.src); // Output: "large.webp"
el.src = "medium.webp"; // Updates the src value
Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4