• Top Members
    Reps
    Posts
  • 834 Replies
    2585 Replies
  • 716 Replies
    2025 Replies
  • 331 Replies
    1928 Replies

Using & Playing Video Files

User avatar
KingTut
Just Registered
Posts: 2

Using & Playing Video Files

Sun Feb 26, 2017 1:38 pm

Videos can be added to a web page by using the video element.

The video element has a start and an end tag. In this example, a source URL is specified by using a source element.

Code: Select all

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Example document</title>
  </head>
  <body>
    <video controls>
      <source src="video_file.mp4" type="video/mp4">
      Video element not supported in your browser.
    </video>
  </body>
</html>  

Post Reply

Return to “Tutorials”