The <iframe> element allows you to embed another website within the current HTML page. It can be useful for displaying external content like videos, maps, or web applications.
The <iframe> (inline frame) is a container that loads another web page into the current one. The src attribute specifies the URL of the page to load.
html
<iframe src="https://example.com" width="600" height="400"></iframe>
The example below shows an iframe displaying an external page. It will work properly if the target site allows embedding.
Common attributes include: src (source), width, height, title, style (custom styles). To remove borders, use CSS or the style attribute.
html
<iframe src="https://example.com" width="500" height="300" title="Example site"></iframe>
If you want to display YouTube videos, Google Maps, another HTML page, or third-party services on your site, <iframe> is a good choice.
Not all websites allow embedding via iframe. Many sites block it for security reasons. Also, the embedded content cannot be fully styled with CSS and may negatively affect SEO.
Select Language
Set theme
© 2025 ReadyTools. All rights reserved.