0
0
HTMLmarkup~10 mins

Media formats overview in HTML - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to add an image to the webpage.

HTML
<img src="image.jpg" alt="A beautiful scenery" [1]>
Drag options to blanks, or click blank then click option'
Ahref="image.jpg"
Bwidth="300"
Cstyle="color:red"
Donclick="alert('Hi')"
Attempts:
3 left
💡 Hint
Common Mistakes
Using href instead of width for image size
Trying to style color on an image tag
2fill in blank
medium

Complete the code to embed a video with controls.

HTML
<video src="movie.mp4" [1]>Your browser does not support the video tag.</video>
Drag options to blanks, or click blank then click option'
Aautoplay
Bloop
Ccontrols
Dmuted
Attempts:
3 left
💡 Hint
Common Mistakes
Using autoplay instead of controls
Forgetting to add controls and video has no buttons
3fill in blank
hard

Fix the error in the audio tag to autoplay the sound.

HTML
<audio src="sound.mp3" [1]>Your browser does not support the audio element.</audio>
Drag options to blanks, or click blank then click option'
AautoPlay
Bstart
Cplay
Dautoplay
Attempts:
3 left
💡 Hint
Common Mistakes
Using camelCase like autoPlay
Using non-existent attributes like play or start
4fill in blank
hard

Fill both blanks to create an audio element that loops and is muted.

HTML
<audio src="music.mp3" [1] [2]>Your browser does not support the audio element.</audio>
Drag options to blanks, or click blank then click option'
Aloop
Bcontrols
Cmuted
Dautoplay
Attempts:
3 left
💡 Hint
Common Mistakes
Using controls instead of muted
Confusing autoplay with loop
5fill in blank
hard

Fill all three blanks to create a video with controls, autoplay, and muted.

HTML
<video src="clip.mp4" [1] [2] [3]>Your browser does not support the video tag.</video>
Drag options to blanks, or click blank then click option'
Acontrols
Bautoplay
Cmuted
Dloop
Attempts:
3 left
💡 Hint
Common Mistakes
Using loop instead of muted
Missing controls so no buttons appear