By definition, an inline frame is an HTML element that is embedded as a frame within a website. This is mainly used to place advertising or ads, for example. iFrames are therefore, among other things, a way to embed content from another, third-party website into your own website. They are mainly used to insert contact forms, images, videos or advertising banners from other websites into your own. With regard to search engine optimization, however, iFrames should be treated with caution, as Google either prefers them or cannot read them, depending on their origin.
iFrames advantages
Nevertheless, iFrames have their advantages:
- No storage space is used, thus no negative impact on the loading time
- Little effort for website operators to put the content on the page
- Users are kept on their own page to consume content
The code for an iFrame can look like this:
<iframe src=”https://www.domain.de/website.html” name=”musterframe” width=”500″ height=”200″ align=”left” scrolling=”yes” marginheight=”0″ marginwidth=”0″ frameborder=”0″>
</iframe>
iFrames and search engine optimization
However, if you hope for a good ranking in search engines, you should avoid using iFrames when embedding important content. As described in the section above, Google may prefer to index the original website and its content or may not be able to read the iFrame.
Thematically relevant sub-pages: