SyntaxStudy
Sign Up
Home HTML Reference <iframe>

<iframe>

tag

Embeds another HTML page within the current page. Commonly used for maps, videos, and external content.

Syntax

<iframe src="url" width="600" height="400" title="desc"></iframe>

Example

html
<!-- YouTube embed -->
<iframe width="560" height="315"
    src="https://www.youtube.com/embed/dQw4w9WgXcQ"
    title="YouTube video"
    frameborder="0"
    allowfullscreen>
</iframe>

<!-- Google Maps -->
<iframe src="https://maps.google.com/maps?q=London&output=embed"
    width="600" height="450" title="Map"></iframe>