Learn one of the most powerful programming languages in the world and become a rockstar developer.
An iframe or inline frame is used to display external objects including other web pages within a web page. The basic syntax for adding an iframe can be given with:
An HTML iframe is defined with the <iframe>
tag:
<iframe src="URL"></iframe>
<iframe src="https://adzetech.com" height="200" width="300"></iframe>
By default, an iframe has a border around it.
To remove the border, add the style
attribute and use the CSS border
property:
<iframe src="https://adzetech.com" style="border:none;"></iframe>
An iframe can be used as the target frame for a link.
The target
attribute of the link must refer to the name
attribute of the iframe:
<iframe src="https://adzetech.com" name="iframe_a"></iframe>
<p><a href="https://www.adzetech.com" target="iframe_a">Adzetech.com</a></p>