An iframe is an inline frame that consists of an html page within an html page. Creating one is really simple, but there are no associated search engine optimization benefits to have an iframe. Essentially, when it comes to SEO, you’re screwed.
Here’s what you do to create an iframe:
- Create an html page and put some content on it; give it a name
- Create another html page
- Place the following code within the body content of the second html page
(bracket)iframe src=”newpage.html” width=”200″ height=”200″
frameborder=”0″ scrolling=”auto” name=”myInlineFrame”(c-bracket)
Body Text (bracket)/iframe(c-bracket)
Replace (c-bracket) with the > symbol and (bracket) with the < symbol.
The effect will be the second page appears within the first page. It might look cool, especially if you have a cool page design, but the page within the page will not get crawled. If you have no additional content on the page that houses your iframe then it won’t get indexed (NOTE: I highly recommend that, if you do this, you put some additional content on that second page).
Many companies with affiliate programs use iframes for their affiliate banner ads. The benefit to them is they get links to their websites and their affiliates do not get SEO benefits and steal their customers. That’s a great use for iframes. But if you plan to build an html page and put that page within another page on the same site, that just doesn’t make any sense. Maybe, maybe you can make it work if you have a page on Site A that you want to appear on Site B. Even then, I’d think long and hard before using an iframe. The SEO benefits just aren’t there.