Page 73 - TP_Prime_V2.2_Class8
P. 73

</HEAD>

                 <BODY>
                   <H1 STYLE="TEXT-ALIGN: center; COLOR: red;">Welcome to the Musical World</
                 H1>

                 <P STYLE="TEXT-ALIGN: center;">
                 <BR>

                 <IMG SRC="MusicalNote.jpg">
                 </P>

                   <AUDIO  SRC="Flute.mp3"  CONTROLS                                                                        MORE ON HTML
                 AUTOPLAY>
                   </AUDIO>

                 </BODY>
                                                                                           Output
                 </HTML>
                                                                                                                          71
                  Adding Video


                 We use <video> tag to embed video in an HTML document.

                 <!DOCTYPE HTML>
                 <HTML>

                 <HEAD>

                   <TITLE>Video</TITLE>
                 </HEAD>
                 <BODY>

                 <H1  STYLE="TEXT-ALIGN:  center;  COLOR:
                 red;">Welcome  to  the  World  of  Movies</
                 H1>
                                                                                           Output
                   <P STYLE="TEXT-ALIGN: center;">
                 <IMG SRC="VideoLogo.png" WIDTH="100" HEIGHT="100">

                   </P>
                   <VIDEO SRC="Rain.mp4" WIDTH="300" HEIGHT="300" CONTROLS AUTOPLAY>

                   </VIDEO>
                 </BODY>
                 </HTML>
                 The Web browser displays the video and starts playing it. However, in some browsers, you
                 may 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 specific media file formats.
   68   69   70   71   72   73   74   75   76   77   78