Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Back in the early 2000's using (i)frames was a big no no for developers. Although they made development easier, it was shunned in every circle and various reasons.

My question is, is it still advised not to use (i)frames? Although there are plenty good reasons to use them? ( e.g. separating navigation from content etc.)

share|improve this question
1  
Clarify your question. Bad for what? Iframes were never bad. They were often misused. They had, and still have, a purpose and they're good for cases that call for an iframe's features. –  Su' Sep 22 '12 at 9:04
add comment

2 Answers 2

up vote 4 down vote accepted

The kind of "good" use you point to, "separating navigation from content", is actually problematic for SEO and almost certainly for usability and others too.

The problems, essentially, are those of value (PageRank, what have you) not being passed to the target of the iFrame, people arriving from search onto a piece of content without it's frame (and thus without navigation), and people not being able to link directly to content.

I should add, there's actually been some debate about about whether value is passed or not. However, I don't think anything conclusive came out of it and, even if value is passed, the other problems still make it unworkable.

Anyway, the SEO angle is covered quite well on another thread: Do we still need to avoid using frame/iframe for good SEO?. I think the bottom line is there's no good reason for iFrames to form the basis of a site's design, and doing so introduces potentially serious problems for users and site performance. However, as Su' points out, there are still occasions where it's the right tool for the job.

share|improve this answer
    
They are bad since we can do everything with AJAX this days or pure PHP calls - SOAP, CURL, File contents, while they are outdated elements -also w3c validator cry because of it. Anyway companys like Facebook still use IFRAMES for "like" buttons and I guess they have their own reasons for that. Gathering information world wide! –  Trouble Sep 22 '12 at 12:21
add comment

Personally, I have found that they still make some things easier. Although IE (Unfortunately still with one of the largest user bases) still has a lot of problems with javascript and it's many libraries and iframes.

Although with Ajax and re-loadable DIV's I find that it's a little redundant and that iframes are now pretty much obsolete. To my own personal usage at least.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.