Adding IFrame in a web page
<iframe> tag:
This tag defines a rectangular region in a document in which browser displays separate web page including scroll bars & borders.<iframe> tag provides following attributes:
Attributes | Description | Values |
---|---|---|
align : | Sets the alignment of an iframe. | left, middle, right, top or bottom |
src : | The URL of the frame to be appear in region. | URL |
name : | Sets the name for frame so it can be targeted. | name |
frameborder : | Sets the border around the frame. | 1 or 0 |
scrolling : | Controls the appearance of scroll bars. | yes, no, auto |
height : | Sets the height for frame in pixels. | pixels,% |
width : | Sets the width for frame in pixels. | pixels, % |
Now let's see this tags with the eg.,
Inserting iframe into your document :
<iframe src ="http://prog101.blogspot.com" width="100%" height="300">
</iframe>
</iframe>