Page 79 - TP-Play_V-2.0_Book-8
P. 79
Adding Video
We use <video> tag to embed video in an HTML document.
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> Video </TITLE>
</HEAD>
<BODY>
<H1 ALIGN = "CENTER"> <FONT COLOR = "Red">
Welcome to the World of Movies </FONT></H1>
<P ALIGN = "CENTER">
<IMG SRC = "D:\VideoLogo.Png">
</P>
<VIDEO SRC = "D:\Rain.mp4" Width = "300" Height = "300" AUTOPLAY CONTROLS>
</VIDEO>
</BODY>
</HTML>
The Web browser displays the video and starts playing it. In some browsers, you need to click on the
play button to start the video.
Images, Links and Frames in HTML5 79

