By using frames, you can display more than one page in the same browser window.
iframe
syntax:
The URL points to a different web page. Properties are displayed in pixels by default, but you can specify that theyare displayed proportionally (for example, “80%”). Set the property value to “0” to remove The properties of the target link must use the 11.19.1. Iframe-set height and width ¶
height
and
width
property is used to define
iframe
height and width of the label.Example ¶
<iframeloading="lazy"src="demo_iframe.htm"width="200"height="200"></iframe>
11.19.2. Iframe-remove the border ¶
frameborder
property is used to define
iframe
indicates whether the border is displayed.
iframe
border:Example ¶
<iframesrc="demo_iframe.htm"frameborder="0"></iframe>
11.19.3. Use
iframe
to display the target link page ¶
iframe
a page that can display a target link
iframe
, as an example:Example ¶
<iframesrc="demo_iframe.htm"name="iframe_a"></iframe><p><ahref="https://www.runoob.com"target="iframe_a"rel="noopener">RUNOOB.COM</a></p>
11.19.4. HTML
iframe
label ¶