Question 1 Report
A railway heritage group is adding a video to its web page. Fig. 1 shows the required player and the available media files. Visitors use different browsers, so the HTML must offer more than one video format and must show controls.
(a) State the HTML element used to embed the player. [1]
(b) Give the attribute that displays play and volume controls. [1]
(c) Give two source elements for the files shown. [4]
(d) Explain why two file formats are supplied. [2]
(a) The player is embedded with a <video> element. [1]
(b) The attribute is controls. [1] It displays built-in controls such as play and volume controls.
(c) The two source elements are:
<source src="steamtrain.mp4" type="video/mp4">
<source src="steamtrain.webm" type="video/webm">Each complete source element earns [2], including the correct file and MIME type.
(d) Browsers may not support the same video formats. [1] Providing an alternative format allows more visitors to play the video. [1]
Everything you need to excel in your exams