Which HTML5 tag is used to embed video and can contain source elements?

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 HTML5 tag is used to embed video and can contain source elements?

Explanation:
The video element is used to embed video directly in a webpage and can contain source elements. This allows you to provide multiple video files in different formats (for example, mp4 and WebM) so the browser can choose one it can play. You can also include fallback content inside the video tag for browsers that don’t support it. The audio element handles sound only, not video; a regular iframe embeds another page, not a video file; and embed is a generic plugin-embedding tag that isn’t specific to HTML5 video. So, the tag that both embeds video and can include source elements is the video element.

The video element is used to embed video directly in a webpage and can contain source elements. This allows you to provide multiple video files in different formats (for example, mp4 and WebM) so the browser can choose one it can play. You can also include fallback content inside the video tag for browsers that don’t support it. The audio element handles sound only, not video; a regular iframe embeds another page, not a video file; and embed is a generic plugin-embedding tag that isn’t specific to HTML5 video. So, the tag that both embeds video and can include source elements is the video element.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy