Give a simple implementation of the <video>
tag to embed a video stored at http://www.example.com/amazing_video.mp4
. Give the video a width of 640 pixels by 360 pixels. Provide the user with controls.
Answer :
Here is one simple implementation:
<video src="http://www.example.com/amazing_video.mp4" width="640" height="360" controls></video>
Alternatively, the source file may be indicated with a separate <source>
tag inside the <video>
element, as in:
<video width="640" height="360" controls>
<source src="http://www.example.com/amazing_video.mp4">
</video>