HTML and CSS Certification Practice Test 2025 – The All-in-One Guide to Master Your Certification!

Question: 1 / 400

How can you implement a video that the user can play, pause, and seek?

<video controls><source src="HowTo.mp4" type="video/mp4">Your browser does not support playing this video.</video>

The correct choice utilizes the `<video>` tag with the `controls` attribute, which is essential for giving users the ability to interact with the video. The `controls` attribute automatically generates a set of built-in playback controls, including play, pause, and seek functions. This allows users to have control over video playback, enhancing the user experience.

Additionally, the inclusion of the `<source>` tag specifies the source of the video file, along with its type, which is necessary for ensuring compatibility across different browsers. In this case, it specifies the video file as "HowTo.mp4" and indicates its format as "video/mp4." The fallback message "Your browser does not support playing this video" is also important for informing users if their browser cannot display the video, providing an additional layer of user experience consideration.

The other choices either lack the necessary attributes to provide playback controls or do not correctly serve a video file. For example, the option that utilizes just the `<video>` tag without controls does not offer any user interaction capabilities, which is critical for a functional video experience. Similarly, an option that employs an `<audio>` tag instead of `<video>` would not meet the requirement for video playback, as it is specifically designed for audio content

Get further explanation with Examzify DeepDiveBeta

<video src="HowTo.mp"></video>

<video><source src="HowTo.mp4" type="video/mpeg">Your browser does not support playing this video.</video>

<audio controls><source src="HowTo.mp"></audio>

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy