of the link must refer to the name attribute of the iframe: Create an iframe with a URL address that goes to https://www.w3schools.com. Basically — if you need to embed some independant, already-existing HTML document into the current document, use an , The height and width are specified in pixels by default: Or you can add the style attribute and use Try it yourself here. border property: With CSS, you can also change the size, style and color of the iframe's border: An iframe can be used as the target frame for a link. 2., W3Schools is optimized for learning and training. The size of an Iframe can be reset in the same … This targets iframes inside containers with the .video-container class. Of course, it's fairly simple to adjust the height of an iframe when the content first loads. The syntax for an Iframe is: , , ,