Video autoplay not working

My video tag autoplay isn’t working and it won’t start my video can somebody help?

<!DOCTYPE html>
<html lang="eng">
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UACompatible" content="ie=edge">
        <link rel="stylesheet" type="text/css" href="resources/css/style.css">
        <h1 class="header--main">Discover hidden places in the world around you</h1>
        <p><a href="#" class="link--cta">Download Excursion (Coming soon!)</a></p>
        <video autoplay loop>
            <source src="resources/videos/excursion.mp4" type="video/mp4"></source>

Hi there, and welcome to the forums!

Which browser are you using?

Firefox, for example, introduced code several versions ago which actively prevents websites from automatically playing videos when the page loads. If you’re using Firefox, this could be the cause; or, whichever browser you are using may have implemented a similar feature. :slight_smile:

1 Like

Safari and Chrome as well, don’t know about the others though

@christiantaroprentic you might wanna read this:

1 Like

Thanks that worked for me!