Page 187 - Webapplication11_C11_Flipbook
P. 187
<BODY>
<H1 ALIGN = "CENTER"> <FONT COLOR = "Red">
Welcome to the Musical World </FONT></H1>
<P ALIGN = "CENTER">
<IMG SRC = "D:\MusicalNote.Jpg">
</P>
<AUDIO SRC = "D:\flute.mp3" AUTOPLAY CONTROLS>
</AUDIO>
</BODY>
</HTML>
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.
The <audio> and <video> tags might not work in some browsers that do not support HTML5 and the file formats.
ÐWAV, MP3, and Ogg are the file formats currently supported to embed audio.
Ð
Ð ÐMP4, WebM, and Ogg are the file formats currently supported to embed video.
Website Building Using HTML and CSS 185

