Html <iframe> Attributes And Its Example

aimtocode

<iframe> Attribute :

The <iframe> tag creates an inline frame for embedding third-party content (media, applets, etc.). The content of the frame and the web page are independent, but they can interact through JavaScript. The HTML <iframe> tag is used to specify an inline frame, or, as the HTML5 specification refers to it, a nested browsing context.

An iframe or inline frame is used to display external objects including other web pages within a web page. An iframe pretty much acts like a mini web browser within a web browser. Also, the content inside an iframe exists entirely independent from the surrounding elements. Not all browsers support frames. we must define an alternate text, which will be displayed to the user, if the browser cannot display the content of the frame.

form Example :

 <iframe src="http://aimtocode.com/html.html" style="height: 1000px; width: 100%"></iframe>
aimtocode