<?xml version="1.0" encoding="utf-8"?>

The inline frame tag <iframe>

The inline frame tag <iframe>

The <iframe> element allows embedding another webpage within your page. The most common uses are embedding Youtube videos, ads, or third-party widgets such as social networks' Like and Share buttons.

The most important attribute of this element is src that defines the path to the embedded webpage. It's also a good idea to determine the size with the width and height attributes.

Improve your UX & Product skills with interactive courses that actually work