Page 72 - Trackpad_V1_Book 7_Flipbook
P. 72

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.

                  Attributes of <iframe> tag are:

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

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

                  Example:

                  <!DOCTYPE HTML>
                  <HTML>

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

                      <Style Type = "text/css">

                      Body {Background-Color:Grey}
                      </Style>
                      </HEAD>

                  <BODY>

                  <H1 ALIGN = "CENTER"> Example of double spread containing inline frames
                  </H1>
                  <iframe src = "Frame1.html" Height = "200" Width = "200"> </iframe>

                  <iframe src = "Frame2.html" Height = "200" Width = "200"> </iframe>
                  </BODY>

                  </HTML>


























                   70   Trackpad (Version 1.0)-VII
   67   68   69   70   71   72   73   74   75   76   77