I would like to use iframe html5 tag in my web project (ASP.NET MVC5). But I am wonder the browsers not allowed display content. So is using iframe dead?
My goal is wrap the payment gate window to iframe tag and place to my web page.
I would like to use iframe html5 tag in my web project (ASP.NET MVC5). But I am wonder the browsers not allowed display content. So is using iframe dead?
My goal is wrap the payment gate window to iframe tag and place to my web page.
Iframe is not dead. It is still widely used, mostly for advertisement (third parties can serve content without intervention from the site admin). This answer mentions some valid points.
You can separate websites and domains easily without security concerns (cross-domain policy). That makes it unique and irreplaceable.
Yes.
It was deprecated in HTML5, tough some browsers still support it I do not recommend you to use it in your projects.
The problems
1) It was removed from web standards, you maybe get some problems while trying to access your page from newer browsers.
2) It's SEO unfriendly. A webpage was supposed to only have one URL, but if you use frames your page will have multiple URLs (one for each frame).
3) If the frame source isn't reliable you can get security problems.
Sites that use it
JS Bin, JS Fiddle and Codepen are good examples.