7.4 iframe Element
You’ve learned how to display an image in the body of a web page and also in the tab area at the top of the browser window. In this section, you learn to display an image in a frame that’s embedded within the browser window. Specifically, you’ll use an iframe (short for inline frame) element to create a browsing context. A browsing context is an area within a web page that can display an embedded web document, where a web document is something with a URL (i.e., a web page or a stored image).
Instead of loading an entire web page within an iframe’s browsing context, it’s more common to load a stored image into a browsing context. For example, in the Art Exhibit web page in FIGURE 7.4, an iframe element is used to display ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access