What is iframe used for? [closed]

怎甘沉沦 提交于 2019-12-30 05:32:06

问题


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.



来源:https://stackoverflow.com/questions/4232067/what-is-iframe-used-for

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!