Frames deprecated in HTML5 but not iFrames

Why frames are deprecated in HTML5 but not iFrames. In the end, there is practically no difference between them. In many cases, using any of them would give the same result (forgive me if I am wrong)?

+8
html html5 iframe frames
Apr 15 '12 at 5:16
source share
3 answers

Built-in frames are used to embed "plugins" in part of a page. Have you seen Google maps on a website before? These are iframes.

The actual framework, on the other hand, is completely meaningless. They are almost never used on professional websites. If you ever go to high school, you can see IT projects that use the framework for "navigation bars" or something else. They occupy half the page (or, nevertheless, configure it), and load as a separate page.

Simply put: iframes can be used as plugins. Frames are non-elementary and not very useful.

Edit: To be more specific, iframes and frames are completely different. Using my example google maps, and the iframe will have a small box on the page since you are using it. A regular frame will take up half the screen for display (you can configure many frames so that a certain frame is in the middle of the screen, but why do this when you can use the built-in frame?)

+5
Apr 15 '12 at 5:19
source share

Frames were a great feature in previous versions of html. However, for many reasons (most of which are beyond my understanding) they were deleted. Iframes are used to embed applications, and frames are used for other things, such as templating.

Frames had strange behavior in the browser, although the URL did not change (for example, this site) even if the frame source changed. This is because you are viewing multiple web pages at a time with frames. In html5 this makes no sense (iframes and frames do basically the same thing, but the frame tag has a bad specification), and w3c deleted them because they are deprecated anyway.

+1
Dec 11 '13 at 0:47
source share

<frame> work completely differently than <iframe> and, as a rule, are not user friendly. Most implementations are such that the main address of the site is always displayed in the address bar, regardless of where you are on the site. This makes it impossible to bookmark a bookmark, send a link to another, etc.

Basically, frames are an expression of the 'goto' of the HTML world. Of course, they can be useful, and they can be done well, but most of the time it is just bad programming created by bad programmers.

-one
Oct 30 '14 at 19:56
source share