<video>

In this chapter you will learn:

  1. How to use <video> tag
  2. A demo showing how to use <video> tag

Description

The video element embeds video content into a web page.

Example

<!DOCTYPE HTML>// j  av a 2  s . co m
<html>
<body>
      <video width="360" height="240" src="your.webm" autoplay controls
            preload="none" muted> Video cannot be displayed
      </video>
</body>
</html>

Next chapter...

What you will learn in the next chapter:

  1. Definition, default value, CSS version and JavaScript syntax for background
  2. Syntax to create background property and meaning for each of its property value
  3. An example showing how to use background CSS property