An iframe is used to display a web page within a web page.
The src attribute specifies the URL (web address) of the
iframe page.
The attribute values are specified in pixels by default, but they can also be in percent (like "80%").
To remove the border, add the style attribute and use the CSS border property: border:none
Iframe Syntax
The syntax for adding an iframe is:
<iframe src="URL"></iframe>
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