Quantcast
Channel: Everyday I'm coding » standards
Viewing all articles
Browse latest Browse all 6

Are iframes considered ‘bad practice’?

$
0
0

Somewhere along the line I picked up the notion that using iframes is ‘bad practice’.

Is this true? What are the pros/cons of using them?


Solution:

As with all technologies, it has its ups and downs. If you are using an iframe to get around a properly developed site, then of course it is bad practice. However sometimes an iframe is acceptable.

One of the main problems with an iframe has to do with bookmarks and navigation. If you are using it to simply embed a page inside your content, I think that is fine. That is what an iframe is for.

However I’ve seen iframes abused as well. It should never be used as an integral part of your site, but as a piece of content within a site.

Usually, if you can do it without an iframe, that is a better option. I’m sure others here may have more information or more specific examples, it all comes down to the problem you are trying to solve.

With that said, if you are limited to HTML and have no access to a backend like PHP or ASP.NET etc, sometimes an iframe is your only option.


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images