Monday, 27 May 2019

What is difference between frame and Iframe in HTML? tccicomputercoaching.com

Frame allows you to show browser into the separate section. HTML5 supports frameset tag in place of frame into the webpage.

A frameset allows you to split the screen into different pages (horizontally and vertically) and display different documents in each part.

IFrame is a web page which is embedded in another web page or an HTML document embedded inside another HTML document. The IFrame is often used to insert content from another source, such as an advertisement, into a Web page .



Another difference is Iframe include only single HTML link, where frameset can include multiple HTML links and display accordingly.

Syntax:

1. Frameset

There is no body element.

<frameset
rows="100,150,20,80"> <frame src=" ../file_path/frame_1.html " frameborder="1">
<frame src=" frame_2.html " frameborder="1" frameborder="1">
<frame src=" frame_3.html " frameborder="1">
<frame src=" frame_4.html " frameborder="1">
2.iframe: </frameset>

<iframe src="http://tccicomputercoaching.com/workshop-form-details/"
style="height:200px;width:300px"></iframe>

To learn more in detail about html elements at TCCI.

Call us @ 9825618292

Visit us @ http://tccicomputercoaching.com/

No comments:

Post a Comment