What is the purpose of the iframe tag in HTML? 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.
"Closing" the current iFrame is not possible but you can tell the parent to manipulate the dom and make it invisible.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With