1D0-61B · Question #41
Matthew has embedded a video in his Web page using the HTML5 video format. The video is not rendering properly. He asks Arlene to help determine the problem, so she reviews his code, which appears…
The correct answer is D. The second instance of the <video> element should be replaced with the <source> element. Option D is correct because HTML5 video syntax requires the <video> element as the outer container, with <source> elements nested inside it to define the video file(s) and their formats - using a second <video> tag breaks this structure entirely and will prevent the video from…
Question
Matthew has embedded a video in his Web page using the HTML5 video format. The video is not rendering properly. He asks Arlene to help determine the problem, so she reviews his code, which appears as follows:
What is wrong with this code?
Options
- AThe ogg video format is not supported by HTML5.
- BOne of the video tag instances has not been properly closed.
- CThe browser plug-in information required to view the video is missing.
- DThe second instance of the <video> element should be replaced with the <source> element.
How the community answered
(37 responses)- A5% (2)
- B3% (1)
- C3% (1)
- D89% (33)
Explanation
Option D is correct because HTML5 video syntax requires the <video> element as the outer container, with <source> elements nested inside it to define the video file(s) and their formats - using a second <video> tag breaks this structure entirely and will prevent the video from rendering.
Why the distractors are wrong:
- A is incorrect because Ogg (Ogg Theora) is a valid HTML5 video format, supported natively by browsers like Firefox and Chrome.
- B is incorrect because the problem is a wrong element type, not an unclosed tag - a missing closing tag would be a separate, unrelated syntax error.
- C is incorrect because HTML5
<video>is a native browser feature requiring no plug-in (that was a Flash-era concern).
Memory tip: Think of <video> as a "TV set" and <source> as the "channels" - you need one TV with multiple channel options inside it, not two TVs stacked together. The correct structure is always <video> → <source src="..." type="..."> → </video>.
Topics
Community Discussion
No community discussion yet for this question.