Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

source

Description

The source element for HTML enables multiple media sources to be specified for audio and video elements.

It does not represent anything on its own.

Syntax

HTML

<source attribute-name="attribute-value"></source>

Attributes

Global

NameValueDescription
mediamedia query listMedia for which the destination of the hyperlink was designed
srcURIURL for the audio stream
typeMIME typeMIME type of the content

Examples

1 · media

2 · src

3 · type

!doctype

a

abbr

address

area

article

aside

audio

b

base

bdi

bdo

blockquote

body

br

button

canvas

caption

cite

code

col

colgroup

data

datalist

dd

del

details

dfn

dialog

div

dl

dt

em

embed

fieldset

figcaption

figure

footer

form

h1

h2

h3

h4

h5

h6

head

header

hgroup

hr

html

i

iframe

img

input

ins

kbd

label

legend

li

link

main

map

mark

menu

meta

meter

nav

noscript

object

ol

optgroup

option

output

p

param

picture

pre

progress

q

rb

rp

rt

rtc

ruby

s

samp

script

search

section

select

slot

small

span

strong

style

sub

summary

sup

table

tbody

td

template

textarea

tfoot

th

thead

time

title

tr

track

u

ul

var

video

wbr

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu