TRENDING TOPICS

×

<iframe> tag in HTML

The <iframe> tag is used to defines a rectangular region within the document in which the browser can display a separate document, including scrollbars and borders. An inline frame is used to embed another document within the current HTML document.

  • Open and close tag required of <iframe>.

Example of <iframe> tag

Result Look Like

<iframe> Tag Browser Support

Element Chrome Edge Firefox Safari Opera
<iframe> Yes Yes Yes Yes Yes

Global Attributes

Event Attributes

Attributes

Attribute Value Description
height pixels Defines the height of an <iframe> element
name text Defines the name of an <iframe> element
sandbox allow-forms
allow-pointer-lock
allow-popups
allow-same-origin
allow-scripts
allow-top-navigation
Used to enables an extra set of restrictions for the content in an <iframe> element
src URL Defines the address of the document to embed in the <iframe> element
srcdoc html_code Defines the HTML content of the page to show in the <iframe> element
width pixels Defines the width of an <iframe> element

Advertise With Us

We offer sponsored posts and guest posts with do-follow links, back-links, and other advertising services, To advertise email us at "advertise@gdatamart.com"

© 2021 GDATAMART.COM (All Rights Reserved)