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

Prepare for the Web Design EOPA Test. Study with interactive quizzes and multiple-choice questions, complete with hints and detailed explanations. Get ready for your web design certification!

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