top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How can we embed Video in HTML 5?

+5 votes
404 views
How can we embed Video in HTML 5?
posted Sep 9, 2015 by Sathyasree

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

0 votes

The same as for audio, HTML 5 defines a standard way to embed video files. Supported video formats are MP4, WebM and Ogg.

<video width="450" height="340" controls>
  <source src="jamshed.mp4" type="video/mp4">
   Your browser does'nt support video embedding feature.
</video>
answer Sep 10, 2015 by Shivaranjini
0 votes

To show a video in HTML, use the element:

Example:

<video width="320" height="240" controls>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
answer Sep 17, 2015 by Vrije Mani Upadhyay
...