Answers for "video tag in html"

8

how to embed videos in html

<iframe src="example.mp4" width="100px" height="100px"></iframe>
Posted by: Guest on May-06-2020
10

html5 video player

<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. <!-- Text to be shown incase browser doesnt support html5 -->
</video>
Posted by: Guest on March-21-2020
1

video tag html

<!DOCTYPE html>
<html>
<body>

<h1>Video TITLE</h1>

<video width="320" height="240" controls>
  <source src="Video Link">
</video>

</body>
</html>
Posted by: Guest on March-21-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