Week 5:

iFrames



The iframe HTML tag allows you to embed a different web page inside of a div element of your web page. This can be a page you created or a completely different site somewhere on the web. You can also add a name attribute to the iframe, and then refer to that name using the target attribute on anchor tags in order to open new pages within the iframe upon clicking the link.



<iframe width="47.5%" height="500" src="https://iovine-young.usc.edu" style="float: left; margin-right: 5%"></iframe>
<iframe width="47.5%" height="500" src="https://www.usc.edu"></iframe>

Resources