Video Element
Easy
522
26
87.7% Acceptance
In this lab, you will create a simple video player using HTML.
To add a video to the HTML Page, follow the steps below:
- Create a video element in the HTML file with
controls
attribute. - Add an
id
with textvideo
to the video element - Add a source element inside the video element with the
src
attribute pointing to a sample video and thetype
attribute set tovideo/mp4
. - To make this video responsive, we will the
width
property of thevideo
element to100%
andheight
property toauto
. These would auto adjust the width and the height of the video based on the available width in the current viewport of the page.
Set the video source to following video https://codedamn-website-assets.s3.us-east-1.amazonaws.com/uploads/09-2023/bunny.dX-WwYMq_tgzoYZfGjI-r.mp4
Do not change the values of the attributes, they need to be the specified attributes to pass the tests