24.08.2016 Views

HTML and CSS design and build websites

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

IFrames<br />

<br />

An iframe is like a little window<br />

that has been cut into your<br />

page — <strong>and</strong> in that window you<br />

can see another page. The term<br />

iframe is an abbreviation of inline<br />

frame.<br />

chapter-08/iframes.html<br />

<strong>HTML</strong><br />

<br />

<br />

One common use of iframes<br />

(that you may have seen on<br />

various <strong>websites</strong>) is to embed<br />

a Google Map into a page. The<br />

content of the iframe can be any<br />

html page (either located on the<br />

same server or anywhere else on<br />

the web).<br />

Result<br />

An iframe is created using the<br />

element. There are a<br />

few attributes that you will need<br />

to know to use it:<br />

src<br />

The src attribute specifies the<br />

URL of the page to show in the<br />

frame.<br />

height<br />

The height attribute specifies<br />

the height of the iframe in pixels.<br />

width<br />

The width attribute specifies<br />

the width of the iframe in pixels.<br />

189 EXTRA MARKUP

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!