Which attribute or tag associates multiple media resources with 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 attribute or tag associates multiple media resources with media elements such as video and audio?

Explanation:
Providing multiple media files for video or audio is done with the source element inside the media element. You can add several source elements, each with a src and a type (like video/mp4 or video/webm). The browser will pick the first source it can play and fall back to the next ones if needed. This lets you offer different formats or resolutions without duplicating the markup. The track element serves for subtitles, captions, or metadata, not for linking multiple media files. The embed element is for embedding plugin-based content, not for supplying multiple media resources. The aria attribute-related option isn’t a valid way to attach media sources either, since ARIA attributes are for accessibility and not for linking sources.

Providing multiple media files for video or audio is done with the source element inside the media element. You can add several source elements, each with a src and a type (like video/mp4 or video/webm). The browser will pick the first source it can play and fall back to the next ones if needed. This lets you offer different formats or resolutions without duplicating the markup.

The track element serves for subtitles, captions, or metadata, not for linking multiple media files. The embed element is for embedding plugin-based content, not for supplying multiple media resources. The aria attribute-related option isn’t a valid way to attach media sources either, since ARIA attributes are for accessibility and not for linking sources.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy