HTML Iframes

Posted On: December 27, 2015

You could describe an inline frame with HTML tag <iframe>. The <iframe> tags classify a region within the page in which the browser could display a separate document.

The src attribute is used to identify the URL of the page that engages the inline frame.


Here is the example to explain how to employ the <iframe>:

<!DOCTYPE html>
<title>HTML Iframes</title>
<p>page content goes at this point…</p>
<iframe src=”/html/webetutorial.htm” width=”444″ height=”200″>
Her you could see your page content in inline frames.

The <Iframe> Attributes

Src:- This attribute is used to provide the file name that ought to be loaded in the frame. Its value could be any URL.

Name:- This attribute permit you to offer a name to a frame. It is used to point to which frame a page should be loaded into.

Frame border: – This attribute identify whether or not the borders of that frame are shown; it overrides the value specified in the frame border attribute on the <frameset> tag.

Also Read :   HTML Formatting

Margin width: – This attribute permit you to identify the width of the space between the left and right of the frame’s borders and the frame’s content.

Margin height: – This attribute permit you to identify the height of the space between the top and bottom of the frame’s borders and its contents.

Scrolling:- This attribute controls the outer shell of the scroll-bars that show on the frame. This takes values either “yes”, “no” or “auto”.

Related Post

Subscribe to our newsletter
Subscribe to our newsletter today to receive updates on the latest news and offers.
100% Privacy. No spam guaranteed
webe tutorial