Page 112 - ConceptGP_C7_Fb
P. 112

</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: Used to control the height of the iframe and its values can be specified in pixel or
                    percentage. (px or %).
                     Width:  Used to  control the  width  of the  iframe and its  values can be  specified  in pixel  or

                    percentage. (px or %).
                  Example: 1

                  <!DOCTYPE HTML>

                  <HTML>
                  <HEAD>

                  <TITLE> iframes Example </TITLE>
                  <STYLE>

                  Body {Background-Color:Red; Color:Yellow}



                  110   Premium Edition-VII
   107   108   109   110   111   112   113   114   115   116   117