Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Embed Audio and Video in HTML | Working with Media and Tables
Ultimate HTML
course content

Course Content

Ultimate HTML

Ultimate HTML

1. Understanding Web Development
2. HTML Tags and Attributes
3. HTML Document Structure
4. Working with Media and Tables
5. HTML Forms and User Input

book
Challenge: Embed Audio and Video in HTML

Goal

Create an engaging multimedia experience for the website visitors by incorporating both audio and video content.

Task

Take the website to the next level by immersing users in a captivating multimedia experience. Your task is to:

For the audio: embed an audio file that provides a soothing atmosphere for users to relax. Use the following link for the audio:

For the video: integrate a video that lets users enjoy the beauty of nature creatures. Use the following link for the video:

Add playback controls like play and pause.
Add file types.

html

index.html

css

index.css

copy
  1. Use the audio tag to specify an audio element.
  2. Use the video tag to specify a video element.
  3. Use the controls attribute to allow users to manage the audio or video playback.
  4. Use the src attribute to specify the file's location. Ensure accurate copying of links from the task.
  5. Use type="audio/mp3" to specify the correct file type for the audio.
  6. Use type="video/mp4" to specify the correct file type for the video.
html

index.html

css

index.css

copy
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 4. Chapter 6
We're sorry to hear that something went wrong. What happened?
some-alt