Sunday, 15 March 2015

HTML Iframes

An iframe is used to display a web page within a web page.

Iframe Syntax

The syntax for adding an iframe is:
<iframe src="URL"></iframe>
The src attribute specifies the URL (web address) of the iframe page.

Iframe - Set Height and Width

Use the height and width attributes to specify the size.
The attribute values are specified in pixels by default, but they can also be in percent (like "80%").

Iframe - Remove the Border

By default, an iframe has a black border around it.
To remove the border, add the style attribute and use the CSS border property: border:none

No comments:

Post a Comment