InterviewSolution
| 1. |
Explain <video> in HTML. |
|
Answer» To embed any kind of video in the web page, <video> tag is used. We need to use <source> tag inside the <video> tag to specify which file to upload. It will then contains the src attribute. Any kind of video could be uploaded like a song video, or a short story video or an EDUCATIONAL video, etc. The important thing to note is that the video needs to be there on your web-server, or in your local drive if testing locally. There are many attributes to the video tag like controls, autoplay, muted, loop.
For the above to work, you should have a flower.webm or flower.mp4 in the same directory as demo.html |
|