Which tag defines multiple media resources for media elements, such as <video> and <audio>?

Learn web design with our comprehensive test guide. Improve your skills with flashcards and multiple choice questions. Each question includes hints and explanations. Get ready to ace your exam!

Multiple Choice

Which tag defines multiple media resources for media elements, such as <video> and <audio>?

Explanation:
Providing multiple media resources for media elements is done with the <source> tag. You place one or more <source> elements inside a video or audio element, each specifying a different file via the src attribute and declaring the MIME type with type. The browser will try to play the first source it supports, and if that one can’t be played, it will move on to the next. This lets you offer fallback formats for compatibility across browsers. The <track> tag handles text tracks like subtitles and captions, not media data, while the <video> and <audio> tags are the containers that hold the sources.

Providing multiple media resources for media elements is done with the tag. You place one or more elements inside a video or audio element, each specifying a different file via the src attribute and declaring the MIME type with type. The browser will try to play the first source it supports, and if that one can’t be played, it will move on to the next. This lets you offer fallback formats for compatibility across browsers. The tag handles text tracks like subtitles and captions, not media data, while the

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy