19 lines
971 B
Plaintext
19 lines
971 B
Plaintext
The HTML <video> element is used to embed video content. It may contain several video sources, represented using the src attribute or the <source> element; the browser will choose the most suitable one.
|
|
|
|
For a list of supported formats, see Media formats supported by the audio and video elements.
|
|
|
|
Content categories:
|
|
Flow content, phrasing content, embedded content. If it has a controls attribute: interactive content and palpable content.
|
|
|
|
Permitted content:
|
|
If the element has a src attribute: zero or more <track> element, followed by transparent content that contains no media elements, that is no <audio> or <video>
|
|
Else: zero or more <source> element, followed by zero or more <track> element, followed by transparent content that contains no media elements, that is no <audio> or <video>.
|
|
|
|
Tag omission:
|
|
None, both the starting and ending tag are mandatory.
|
|
|
|
Permitted parent elements:
|
|
Any element that accepts embedded content.
|
|
|
|
DOM interface:
|
|
HTMLVideoElement |