<source/> Tag Attributes

Attributes of the <source/> tag
global attributes In addition to the personal attributes of the <source> tag below, any of the common HTML attributes can also be coded.
codecs The codecs attribute indicates which codecs should be used for decoding the content referenced by the src attribute.
src

a URI reference that resolves to the URL of the media resource

Use percent escape codes as explained in the URL-encoding tutorial for any special characters in the URI.

If the value of the src attribute is an HTTP URL, it may contain any of the following components:

  1. protocol scheme, typically http: or else https:
  2. username, followed by an "@"
  3. host name or IP address
  4. port number, which defaults to 80 for the http scheme and 443 for the https scheme
  5. absolute or relative path
  6. search query, indicated by "?"

If the protocol scheme, username, host name/IP address and port number are omitted the default is the current host - the same server as the one handling the current document. If the path starts with a slash /..., it is an absolute path from the document root directory (AKA "web root") on the server. A relative path will be resolved relative to the base of the current document.

type The type attribute is the MIME media type of the video content.