Latest web development tutorials

HTML frame

By using the framework, you can display a browser window with more than one page.


iframe syntax:

<iframe src=" URL "></iframe>

The URL points to a different page.


Iframe - set the height and width

height and width attributes are used to define the height and width of the iframe tag.

The default attribute in pixels, but you can specify to scale (eg: "80%").

Examples

<iframe src="demo_iframe.htm" width="200" height="200"></iframe>

try it"


Iframe - Remove border

iframe frameborder attribute is used to define the display indicates whether the border.

Set the property value of "0" to remove iframe border:

Examples

<iframe src="demo_iframe.htm" frameborder="0"></iframe>

try it"


Use iframe to display the directory links page

iframe can display a link to the target page

Properties of the target link must use iframe attributes following examples:

Examples

<iframe src="demo_iframe.htm" name="iframe_a"></iframe>
<p><a href="http://www.w3big.com" target="iframe_a">w3big.com</a></p>

try it"


HTML iframe tag

标签 说明
<iframe> 定义一个内联的iframe