Iframe in Html

Iframe

Iframe is stand for inline frame. Iframe is the frame within the frame. Iframe is used to embed another document within the HTML document.

Iframe syntax

             <iframe src=”URL“>/iframe>

Attributes of Iframe

Attributes of Iframes are as follow:

1. src

This attribute is used to give URL and name description of the document used in ifame.

2. Farme border

This attribute allows iframe to use and hide borders of iframe.

3. Margin width

This attribute allows to specify the width of space between the left and right of the frame’s border and the frame’s content. The value is given in pixels.

4. Margin height

This attribute allows to specify the height of space between the top and bottom of the frame’s border and the frame’s content. The value is given in pixels.

5. Height

It specifies the height of iframe.

6. Width

It specifies the width of iframe.

7. Scrolling

This attribute allows iframe whether o show or not show scrollbars on iframe. Iframe support both vertical and horizontal scrollbars. It take values like ‘’yes”  “no” “auto”.