What is the purpose of the iframe tag in HTML? What is it used for?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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
回答2:
Be careful. <iframe> tags are becoming less common.
I wouldn't use iframes except in really specific cases, because it is nonstandard.
here is the link
However, Google images still uses <iframe> tags.