Page 136 - TP_iPlus_V2.1_Class7
P. 136

•   Autoplay  Attribute:  The  "Autoplay"  attribute  is  a  boolean  attribute  that  plays  the  video
                     automatically as soon as the page loads

                  •   Controls Attribute: The "control" attribute allows users to gain control over how the video
                     is played.
                  Adding Audio

                  We use <audio> tag to embed sound content in an HTML document.

                  <!DOCTYPE HTML>
                  <HTML>

                  <HEAD>
                  <TITLE>Audio</TITLE>

                  </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
                  AUTOPLAY>

                    </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 STYLE="TEXT-ALIGN: center;  COLOR:
                  red;">Welcome to the World of Movies</H1>

                    <P STYLE="TEXT-ALIGN: center;">
                  <IMG SRC="VideoLogo.png" WIDTH="100"



                   134
                          iPlus (Ver. 2.1)-VII
   131   132   133   134   135   136   137   138   139   140   141