HTML Iframes Options

codeling Posts: 1089 Points: 4569
Posted: Wednesday, March 29, 2017 4:17:05 PM

HTML frames are used to divide your browser window into multiple sections where each section can load a separate HTML document. A collection of frames in the browser window is known as a frameset. The window is divided into frames in a similar way the tables are organized: into rows and columns.

An HTML iframe is defined with the <iframe> tag:

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

The src attribute specifies the URL (web address) of the inline frame page.

 

codeling Posts: 1089 Points: 4569
Posted: Wednesday, March 29, 2017 4:23:07 PM

<iframe id="viewFrame" src='demo.html' style="width:100%;height:100%;border:0;" scrolling="no" />

In the above style attribute, the CSS height and width property is to specify the size of the iframe.

By default, an iframe has a border around it.To remove the border, set the CSS border property to 0.

Users browsing this topic
Guest