I'm currently developing a website and I'd like to embed a video in HTML using Bootstrap 4. The video file is in mp4 format.
Here's the HTML code snippet that I've experimented with to insert the video:
<header class="container border masthead_video text-white text-center">
<div class=""
type="video/mp4" autoplay="autoplay" loop="loop"></video>
</div>
<div class="row mt-5">
<div class="col-md-10 col-lg-8 col-xl-7 mx-auto">
</div>
</div>
</header>
Issue at Hand:
I'm curious if there's a predefined header class in Bootstrap similar to the navbar which allows for easy placement of images and videos. Additionally, what modifications do I need to make to successfully embed a video here:
<div class=""
type="video/mp4" autoplay="autoplay" loop="loop"></video>
</div>