1D0-610 · Question #34
Which code is best for embedding video into an HTML5 page? A. B. C. D.
The correct answer is A. <video width="360" height="270" controls="cpmtrp:s" poster="image.png"> <source src="video.mp4" type="video/mp4" /> <source src="video.ogg" type="video/ogg" /> Your browser does not support the HTML5 video element. </video>. Option A correctly pairs MP4 and OGG sources, which together cover the two major browser camps - MP4 for Chrome, Safari, and IE/Edge; OGG for Firefox and Opera. This two-format combination was the established standard for maximum HTML5 video compatibility. Why the distractors fai
Question
Which code is best for embedding video into an HTML5 page? A. B. C. D.
Options
- A<video width="360" height="270" controls="cpmtrp:s" poster="image.png"> <source src="video.mp4" type="video/mp4" /> <source src="video.ogg" type="video/ogg" /> Your browser does not support the HTML5 video element. </video>
- B<video width="360" height="270" controls="cpmtrp:s" poster="image.png"> <source src="video.web" type="video/webm" /> <source src="video.ogg" type="video/ogg" /> Your browser does not support the HTML5 video element. </video>
- C<video width="360" height="270" controls="cpmtrp:s" poster="image.png"> <source src="video.mp4" type="video/mp4" /> <source src="video.web" type="video/webm" /> Your browser does not support the HTML5 video element. </video>
- D<video width="360" height="270" controls="cpmtrp:s" poster="image.png"> <source src="video.mp4" type="video/mp4" /> <source src="video.ogg" type="video/ogg" /> <source src="video.webm" type="video/webm" /> Your browser does not support the HTML5 video element. </video>
How the community answered
(21 responses)- A81% (17)
- B5% (1)
- C10% (2)
- D5% (1)
Explanation
Option A correctly pairs MP4 and OGG sources, which together cover the two major browser camps - MP4 for Chrome, Safari, and IE/Edge; OGG for Firefox and Opera. This two-format combination was the established standard for maximum HTML5 video compatibility.
Why the distractors fail:
- B and C both use the filename extension
.webinstead of the correct.webm, creating a mismatch between the filename and the declared MIME typevideo/webm- the browser would fail to load those files. - D includes a correct
.webmsource but adds a third format, making it redundant; MP4 already covers the browsers that WebM targets, so the extra source adds no meaningful compatibility benefit and the exam expects the clean two-source standard.
Memory tip: Think "MP4 + OGG = covered" - MP4 handles the WebKit/Blink world, OGG handles the Gecko world. If you see .web as a filename extension anywhere in an answer, eliminate it immediately - the correct extension is always .webm.
Topics
Community Discussion
No community discussion yet for this question.