IFRAME

What are IFrames

Iframes are used in HTML to display a website within a website. It is a great way to populate content from other websites onto your webpage

<iframe> tag 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.

The src attribute is used to specify the URL of the document that occupies the inline frame.

Height and Width attributes of an Iframe

Height and Width in Iframe :

The height and width attributes are used to specify the size of the iframe.

The attribute values are specified in pixels by default, but they can also be specified in percentage like ” 80% “.

Exercise 6.1

In the editor below is an example of an IFrame.
In the HTML tab try to input any website URL and watch it change in the Iframe 

Exercise 6.2

Using an IFRAME create a link to the google website and the Wikipedia website.
Make sure to use the height and width attributes