Take the 2-minute tour ×

I see that HTML has both a frame tag and an iframe tag. How are they different, and when should one be preferred over the other?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

How are they different?

A frame appears inside a frameset. An iframe appears inside an HTML document that has a <body>.

and when should one be preferred over the other?

They do significantly different things.

Both can break linking/bookmarking (so should be used rarely), but the use cases for regular frames make it more likely that will happen with them than with iframes.

share|improve this answer
add comment

Your Answer


