HTML-Booklet

You can characterize an inline outline with HTML tag <iframe>. The <iframe> tag isn’t by one way or another identified with the <frameset> tag, rather, it can show up anyplace in your archive. The <iframe> tag characterizes a rectangular area inside the archive where the program can show a different record, including scrollbars and outskirts. An inline outline is utilized to implant another record inside the present HTML report. 

The src credit is utilized to determine the URL of the archive that possesses the inline outline. 

Model 

<!DOCTYPE html>
<html>
<head>
<title>HTML Iframes</title>
</head>
<body>
<p>paragraph contents here</p>
<iframe src=”/html/menu.htm” width=”340″ height=”160″>
Sorry your browser does not support inline frames.
</iframe>
<p>paragraph contents here</p>   
</body>
</html>

Output:

paragraph contents here

HTML Iframes - HTML - Iframes

paragraph contents here

Following is the guide to tell the best way to utilize the <iframe> 

The <Iframe> Tag Attributes 

The greater part of the traits of the <iframe> tag, including name, class, frame border, id, long desc, margin height, margin width, name, looking over, style, and title carry on precisely like the relating qualities for the <frame> tag. 

Note: The frame border, margin width, long desc, looking over, margin height characteristics expostulate in HTML5. Try not to utilize these traits. 

1.src 

This credit is utilized to give the document name that ought to be stacked in the casing. It’s worth any URL. For instance, src = “/html/top_frame.htm” will stack a HTML record accessible in html registry. 

2.name 

This credit permits you to give a name to a casing. It is utilized to show which outline a record ought to be stacked into. This is particularly significant when you need to make interfaces in a single casing that heap pages into another casing, in which case the second edge needs a name to recognize itself as the objective of the connection. 

3.frame border 

This property determines whether the fringes of that edge are appeared; it abrogates the worth given in the frame border characteristic on the <frameset> tag on the off chance that one is given, and this can take esteems either 1 (yes) or 0 (no). 

4.margin width 

This ascribe permits you to determine the width of the space between the left and right of the casing’s outskirts and the edge’s substance. The worth is given in pixels. For instance margin width = “10”. 

5.margin height 

This credit permits you to indicate the stature of the space between the top and base of the edge’s fringes and its substance. The worth is given in pixels. For instance margin height = “10”. 

6.scrolling 

This trait controls the presence of the scrollbars that show up on the edge. This takes esteems either “yes”, “no” or “auto”. For instance looking over = “no” signifies it ought not have scroll bars. 

7.long desc 

This credit permits you to give a connection to another page containing a long depiction of the substance of the casing. For instance long desc = “frame description.htm” 

8.width 

This characteristic indicates the width of <iframe>. 

9.height 

This characteristic indicates the tallness of <iframe>.

 

 

Share