HTML Iframes
HTML Tutorial
Iframe Syntax
CompletedAn HTML iframe is used for defining the <iframe> tag:
Example
<iframe src="URL"></iframe>
The src attribute is used for specifying the web address or URL of the inline frame page.
Iframe - Set Height and Width
CompletedThe height and width attributes is used to specify the iframe size.
The attribute values are given by default (mentioned in pixels), but specification can also be done in percent (like "80%").
Iframe - Remove the Border
CompletedAn iframe has a border around it by default,
For removing the border, you can add the style attribute and make use of the CSS border property:
Using CSS - the size, style and color of the iframe's border can also be changed:
Iframe - Target for a Link
CompletedAn iframe is used as a link's target frame.
The target attribute of the link refers to the name attribute of the iframe:
Example
<iframe src="demo_iframe.htm" name="iframe_a"></iframe>
<p><a href="http://daks.me" target="iframe_a">ngo.com</a></p>
Try it Yourself
HTML iframe Tag
Completed| Tag | Description |
|---|---|
| <iframe> | Defines an inline frame |
