How to create a background video | HTML & CSS tutorial

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUIWeb Design11 min

About this video

A tutorial on setting up a background video on a webpage using HTML and CSS, with several techniques for positioning it. It also notes that auto-playing background videos are generally discouraged because of their performance cost.

What you’ll learn

  • Add a background video to a web page with HTML and CSS
  • Position a background video using a few different CSS techniques
  • Weigh the performance and usability costs of auto-playing background video