How to insert a video into HTML?

Asked

Viewed 18,628 times

-5

I can not insert a video on my page I already went to w3school see and it did not work. I don’t want to insert a youtube video, I want to insert one that is in my folder.

2 answers

3

Before HTML5, a video can only be played in a browser with a plug-in (such as flash).

The HTML5 element specifies a standard way to embed a video on a web page.

<!DOCTYPE html>
<html>
<body>

<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>

</body>
</html>

1

    <video width="320" height="240" controls>
       <source src="caminho para o video/movie.mp4" type="video/mp4">
   </video>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.