The HTML <iframe> tag is used to specify an inline frame, or, as the HTML5 specification refers to it, a nested browsing context. An inline frame allows you to embed another document within the current HTML document.
What is iframe HTML code?
The HTML <iframe> tag specifies an inline frame. An inline frame is used to embed another document within the current HTML document.
How do I insert an iframe?
First, go to YouTube and find a video you like. Below the video, you’ll find a Share button — select this to display the sharing options. Select the Embed button and you’ll be given some <iframe> code — copy this. Insert it into the Input box below, and see what the result is in the Output.