Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is iframe used for? [closed]

Tags:

html

iframe

What is the purpose of the iframe tag in HTML? What is it used for?

like image 831
jagan j Avatar asked Nov 20 '10 09:11

jagan j


People also ask

What is an iframe what is it used for?

What is inline frame (iframe)? An inline frame (iframe) is a HTML element that loads another HTML page within the document. It essentially puts another webpage within the parent page. They are commonly used for advertisements, embedded videos, web analytics and interactive content.

Can you close an iframe?

"Closing" the current iFrame is not possible but you can tell the parent to manipulate the dom and make it invisible.

Does iframe need a closing tag?

There's no such thing as a "self-closing iframe" in HTML (or, for that matter, any other kind of self-closing tag, there are just some elements where the end tag can or must be omitted and iframe is not one of them). You have an iframe start tag with an invalid / at the end of it.

What iframe is good for?

Many tours and activity providers preferably think of using an iframe integration for their own website. It's easy to integrate and can look seamlessly integrated to your customers. Iframes are embedded as a piece of content from one web page into another web page. Iframes are also referred to as inline frames.


1 Answers

An <iframe> is used for containing (X)HTML documents in other (X)HTML documents. This enables updates of parts of a website while the user browses, without making them reload the whole thing. (This is now largely replaced by AJAX).

Also, see:

http://w3schools.com/TAGS/tag_iframe.asp

http://en.wikipedia.org/wiki/HTML_element#Frames

like image 89
Lasse Espeholt Avatar answered Oct 20 '22 13:10

Lasse Espeholt