Search
 
SCRIPT & CODE EXAMPLE
 

HTML

sample code html header template code

<header>

  <!-- This div is  intentionally blank. It creates the transparent black overlay over the video which you can modify in the CSS -->
  <div class="overlay"></div>

  <!-- The HTML5 video element that will create the background video on the header -->
  <video playsinline="playsinline" autoplay="autoplay" muted="muted" loop="loop">
    <source src="https://storage.googleapis.com/coverr-main/mp4/Mt_Baker.mp4" type="video/mp4">
  </video>

  <!-- The header content -->
  <div class="container h-100">
    <div class="d-flex h-100 text-center align-items-center">
      <div class="w-100 text-white">
        <h1 class="display-3">Video Header</h1>
        <p class="lead mb-0">Using HTML5 Video and Bootstrap</p>
      </div>
    </div>
  </div>
</header>

<!-- Page section example for content below the video header -->
<section class="my-5">
  <div class="container">
    <div class="row">
      <div class="col-md-8 mx-auto">
        <p>The HTML5 video element uses an mp4 video as a source. Change the source video to add in your own background! The header text is vertically centered using flex utilities that are built into Bootstrap.</p>
        <p>The overlay color and opacity can be changed by modifying the <code>background-color</code> and <code>opacity</code> properties of the <code>.overlay</code> class in the CSS.</p>
        <p>Set the mobile fallback image in the CSS by changing the background image of the header element within the media query at the bottom of the CSS snippet.</p>
        <p class="mb-0">
          Created by <a href="https://startbootstrap.com">Start Bootstrap</a>
        </p>
      </div>
    </div>
  </div>
</section>
Comment

PREVIOUS NEXT
Code Example
Html :: drag and drop html 
Html :: 24 hour time input html 
Html :: md-autocomplete 
Html :: attribute name selection 
Html :: bootstrap boiler-plate 
Html :: html heading tags 
Html :: require is not define on html script 
Html :: HTML tags - what are tags ? 
Html :: carousel with javascript 
Html :: hover html 
Html :: what is div in html 
Html :: how to make link open in new tab 
Html :: titles html 
Html :: flex inside flex mr-auto not working 
Html :: metro ui 
Html :: html error 
Html :: crypto conversion calculator 
Html :: embedmd 
Html :: close copy with html 
Html :: HTML <section Element 
Html :: phanuel mutuma 
Html :: html click on link to open text message 
Html :: tips for a perfect cake 
Html :: h-card 
Html :: form tab index skip readonly 
Html :: label input mdn 
Html :: embed live crypto transactions map across multiple wallets and exchanges 
Html :: boostrap thymeleaf modal 
Html :: google address suggestion is not working inside popup modal 
Html :: autoplay controls html5 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =