The aim of this skill test is to help you assess whether you understand how to embed video and audio content in HTML.
Note: To get help, read our Test your skills usage guide. You can also reach out to us using one of our communication channels.
In this task, we want you to embed an audio file onto the page.
To complete this task:
audio.mp3, and it available at a path of https://github.com/mdn/learning-area/raw/refs/heads/main/html/multimedia-and-embedding/tasks/media-embed/media/audio.mp3.The starting point of the task looks like this:
Here's the underlying code for this starting point:
<h1>Basic audio embed</h1>
<audio></audio>The updated content should look like this:
Your finished HTML should look like this:
<h1>Basic audio embed</h1>
<audio
controls
src="https://github.com/mdn/learning-area/raw/refs/heads/main/html/multimedia-and-embedding/tasks/media-embed/media/audio.mp3"></audio>In this task, we want you to mark up a slightly more complex video player, with multiple sources, subtitles, and other features besides.
To complete this task:
video.mp4 and video.webm, and are available at the following paths:https://github.com/mdn/learning-area/raw/refs/heads/main/html/multimedia-and-embedding/tasks/media-embed/media/video.mp4https://github.com/mdn/learning-area/raw/refs/heads/main/html/multimedia-and-embedding/tasks/media-embed/media/video.webm<video> a width and height equal to its intrinsic size (320 by 240 pixels).media folder, in a file called https://raw.githubusercontent.com/mdn/learning-area/refs/heads/main/html/multimedia-and-embedding/tasks/media-embed/media/subtitles_en.vtt, when the video is playing. You must explicitly set the type as subtitles, and the subtitle language to English.The starting point of the task looks like this:
Here's the underlying code for this starting point:
<h1>Video embed</h1>
<video></video>The updated content should look like this:
Your finished HTML should look like this:
<h1>Video embed</h1>
<video controls width="320" height="240" muted>
<source
src="https://github.com/mdn/learning-area/raw/refs/heads/main/html/multimedia-and-embedding/tasks/media-embed/media/video.mp4"
type="video/mp4" />
<source
src="https://github.com/mdn/learning-area/raw/refs/heads/main/html/multimedia-and-embedding/tasks/media-embed/media/video.webm"
type="video/webm" />
<track
kind="subtitles"
src="https://raw.githubusercontent.com/mdn/learning-area/refs/heads/main/html/multimedia-and-embedding/tasks/media-embed/media/subtitles_en.vtt"
srclang="en"
label="English" />
</video>