Complete the code to add a video element that plays a file named "movie.mp4".
<video src="[1]" controls></video>
The src attribute in the <video> tag specifies the video file to play. Here, it should be "movie.mp4".
Complete the code to add controls so the user can play and pause the video.
<video src="movie.mp4" [1]></video>
autoplay instead of controls.The controls attribute adds play, pause, and other controls to the video player.
Fix the error in the video tag to make it valid HTML5.
<video [1]="movie.mp4" controls></video>
href instead of src.link or file.The correct attribute to specify the video file is src. Using href or others is invalid for the <video> tag.
Fill both blanks to add a video that loops and starts muted.
<video src="movie.mp4" [1] [2]></video>
controls instead of muted.The loop attribute makes the video play repeatedly. The muted attribute starts the video without sound.
Fill all three blanks to create a video tag that autoplays, is muted, and shows controls.
<video src="movie.mp4" [1] [2] [3]></video>
muted with autoplay causing the video not to play automatically.controls so user can control playback.The autoplay attribute starts the video automatically. muted silences it so autoplay works in browsers. controls shows the play/pause buttons.