HTML Iframe Syntax

The HTML <iframe> tag defines an inline frame, which is used to embed another HTML document within the current page.

Iframe - Set Height and Width

The height and width are specified in pixels by default:

Output:

To remove the border, add the style attribute and use the CSS border property:

Output:

With CSS, you can also change the size, style and color of the iframe's border:

Output 3:

The target attribute of the link must refer to the name attribute of the iframe:

Output 4: