iFrame
Written by Andy Sim
Last updated
An iframe is an HTML element that shows another web page inside your page, like a window onto content from somewhere else.
It is commonly used to embed a map, a video or a booking form from another service. The embedded content is controlled by the other site, so it can slow your page, look different from your design, and be a security risk if it comes from an untrusted source. Search engines may not credit that content to your page.
Examples
- A Google Map showing your office location.
- A YouTube video on a page.
- A third-party booking widget on a contact page.
Why it matters for your website
Use iframes sparingly and only from trusted providers. Prefer to write important information, such as your address and opening hours, as ordinary text on the page so that visitors and search engines can read it.