How to insert video source in html?

  • A+
Category:Languages

I put a video in my html code and when I run the website it is not showing. I checked my code and everything is fine with it.

I tried different browsers and players, i tried with different videos

 <! DOCTYPE html> <html>     <head>         <title>     photos      </title>         <link href="CSS/journalstyle.css" rel="stylesheet" type="text/css">     </head>      <body style="background-image: url(images/bricks.jpg)">         <div class="row">               <img src="images/lidia.png" alt="How to insert video source in html?" style="width: 120px; height: 40px;" class="logo">              <div class="row-right">           <a href="register.html">Register</a>          <a href="about.html">About me</a>          <a href="gallery.html">Gallery</a>          <a href="contact.html">Contact</a>           <a href="journals.html">Home</a>              <br>             <br>              </div>         </div>          <h1>Photos and Media</h1>         <p> Here are my 3 Artefacts</p>         <br> <br>          <br>         <h3>Artefact 1</h3>         <br>     <img src="images/MOSHED-2018-11-10-12-28-30.gif" alt="How to insert video source in html?" style="width:300px;heigh:200px;">         <br>     <h3>Artefact 2</h3>         <br>          <br>         <video width="400" height="300" controls="controls">         <source src="media/Artefact2.mov" type="video/.mov">         </video>         <br>         <h3>Artefact 3</h3>         </body>  </html> 

I expect to see the video on the website

 


I would upload to YouTube and use their embedding. That's always easier in my opinion and will increase the speed of your website.

Comment

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: