Page 174 - Web Applications (803) Class 11
P. 174

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.
                 2.11 FRAMES
              HTML frames divide your browser window into many portions, each of which can load a different HTML document. A
              frameset is a collection of frames in the browser window. In the same manner as tables are structured into rows and
              columns, the window is divided into frames.
              We use the <frameset> tag instead of the <body> tag to use frames on a page. The <frameset> tag specifies how the
              window will be divided into frames. Horizontal frames are defined by the rows attribute of the <frameset> element,
              whereas vertical frames are defined by the cols attribute. Each frame is identified by the <frame> tag, which specifies
              which HTML document will be displayed in the frame.



                172     Touchpad Web Applications-XI
   169   170   171   172   173   174   175   176   177   178   179