# HTML Iframes
● Iframe Syntax
An HTML iframe is used to display a web page within a web page.
This is defied with the <iframe> tag.
<iframe src="URL"></iframe>
● Iframe - Set Height and Width
Use the height and width attributes to specify the size of the iframe.
The attribute values are specified in pixels by default, but they can also be in percent.
The attribute values are specified in pixels by default, but they can also be in percent.
● Iframe - Remove the Border
By default, an Iframe has a border around it.
To remove the border, add the style attribute and use the CSs border property.
With CSS, programmer can also change the size, style and color of the iframe's border.
To remove the border, add the style attribute and use the CSs border property.
With CSS, programmer can also change the size, style and color of the iframe's border.
● Iframe - Target for a Link
An iframe is used as the target frame for a link.
The target attribute of the link must refer to the name attribute of the iframe.
The target attribute of the link must refer to the name attribute of the iframe.
No comments:
Post a Comment