Enter your email id to get regular update free
Login
Your Email
Pasword

What are HTML Iframes?

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

 Syntax of Iframe
The <iframe> tag is used.
E.g:
<iframe src="URL"></iframe>

Set the Height and Width
The height and width attributes re use to specify the size of the iframe attribute. The values are specified in pixels by default but they can also be in percentage.
E.g:
<iframe src="my_iframe.htm" height="200" width="300"></iframe>
To Remove the Border
To remove the border from iframe add the style attribute and use the CSS border property.
E.g:
<iframe src="my_iframe.htm" style="border:none;"></iframe>

Target for a Link
The target attribute of the link should refer to the name attribute of the iframe.
E.g:
<iframe src="my_iframe.htm" name="iframe_a"></iframe>
<p><a href="https://newsandstory.com" target="iframe_a">News and Story</a></p>
An iframe tag defines an inline frame.
Iframes
HTML
HTML
Ayesha
Tech writer at newsandstory
Total 137 views