Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using href instead of width for image size
Trying to style color on an image tag
✗ Incorrect
The width attribute sets the image width in pixels or other units.
2fill in blank
mediumComplete 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using autoplay instead of controls
Forgetting to add controls and video has no buttons
✗ Incorrect
The controls attribute adds play, pause, and volume controls to the video.
3fill in blank
hardFix 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using camelCase like autoPlay
Using non-existent attributes like play or start
✗ Incorrect
The correct attribute to autoplay audio is autoplay all lowercase.
4fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using controls instead of muted
Confusing autoplay with loop
✗ Incorrect
The loop attribute makes the audio repeat, and muted silences it.
5fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using loop instead of muted
Missing controls so no buttons appear
✗ Incorrect
The controls attribute shows playback buttons, autoplay starts the video automatically, and muted silences the sound.