HTML iframe
HTML iframe is used to place another web page content within current web page.Basically, it is a container that shows other web page information within that container.
HTML iframe is used to place another web page content within current web page.Basically, it is a container that shows other web page information within that container.
General syntax of iframes:
Source Code
<iframe src="hello.html" title="result page"></iframe>
Note: Here, the URL
specifies the address of the webpage while the title
denotes the description of the web page.
Source Code
<iframe src="/default.asp" width="100%" height="300" style="border:1px solid black;"></iframe>
Note: To provide height and width of iframe, use height and width property of iframe.
Source Code
<iframe src="demo_iframe.htm" style="height:200px;width:300px;" title="Iframe Example"></iframe>
Note:To provide height and width of iframe ,use height and width property of CSS.
Source Code
<iframe src="demo_iframe.htm" style="border:none;" title="Iframe Example"></iframe>
Note:HTML Iframe border can be removed very easily by CSS style property of border.
Source Code
<iframe src="demo_iframe.htm" style="border:2px solid red;" title="Iframe Example"></iframe>
Note:The HTML iframe border can be provided by CSS style property of the border.