Page 76 - 2633 Trackpad Pro V5.1 Class 7
P. 76

<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.



                            FRAMES AND iFRAMES


                  Frames allow us to divide the web page into several independent parts or panes. The frames
                  work as an independent window allowing multiple views at one time. These also help in making
                  one-part static while allowing other parts to change as per our commands. For example, when
                  we click on the refresh button, we can reload one frame without having to reload the entire web
                  page. A collection of frames in a web browser is called a frameset.

                  CREATING FRAMES

                  In HTML5, Frames(inline) are created using <iframe> tag, which embeds an independent HTML
                  document into the current document.

                  Syntax:
                  <iframe src=”url” title=”description”></iframe>

                  We use the src attribute to specify the URL of the document that contains the inline frame and the
                  title attribute to describe the content of the iframe.

                  Other attributes of <iframe> tag are:

                     Height: It is used to control the height of the iframe and its values can be specified in pixel or
                    percentage (px or %).

                     Width: It is used to control the width of the iframe and its values can be specified in pixel or
                    percentage (px or %).

                  Example:

                  <!DOCTYPE HTML>
                  <HTML>

                      <HEAD>
                      <TITLE> iframes Example </TITLE>




                   74   Premium Edition-VII
   71   72   73   74   75   76   77   78   79   80   81