Answers for "html5 video mp4"

0

adding mp4 in html

<video width="400" controls>
  <source src="mov_bbb.mp4" type="video/mp4">
  <source src="mov_bbb.ogg" type="video/ogg">
  Your browser does not support HTML video.
</video>

<video width="400" controls>
  <source src="mov_bbb.mp4" type="video/mp4">
 
  Your browser does not support HTML video.
</video>
Posted by: Guest on March-01-2021
1

video tag html5

<!-- Non-Semantic: -->
<video width="100" height="100" controls>
  <source src="video.mp4" type="video/mp4">
  Your browser does not support the video element.
</video>
<!-- The text below <source> is displayed if your browser cannot display
the video itself -->

<!-- Semantic: --> 
<figure>
  <video width="100" height="100" controls>
    <source src="video2.mp4" type="video/mp4" />
    Your browser does not support the video element.
  </video>
</figure>

<!-- <Figure> is a semantic element for objects such as audio, video, images,
or embedded content. If you also noticed the / at the end of <source>, this is
simply to ensure the tag closes off. It's not required but is considered a
common practice. -->
Posted by: Guest on June-17-2021

Browse Popular Code Answers by Language