Tell us what’s happening:
Just noticed that a new lab “Build a multimedia player” was available so I started working on it. However, one of the steps involve using the <source>
tag and I don’t remember it being covered in any lecture videos previously. I tried to go back and rewatch the audio and video related videos but did not find any mention of the source tag.
Also, what should I put in the src attribute? An absolute url from the internet?
Your code so far
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Multimedia Player</title>
</head>
<body>
<h1>Multimedia Player</h1>
<section>
<h2>Now Playing: Sailing Away</h2>
<audio controls aria-label="Sailing Away">
<source src="abc.mp3" type="audio/mpeg">
</audio>
</section>
<section>
<h2>Some video</h2>
<video controls width="500" aria-label="some video">
<source src="abc.mp4" type="video/mp4">
<track src="subtitles.vtt" kind="captions" srclang="en" label="English">
</video>
</section>
<section>
<h2>Transcript</h2>
<p>Hello guys, welcome to my vlog</p>
</section>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0
Challenge Information:
Build a Multimedia Player - Build a Multimedia Player