HTML and CSS Reference
In-Depth Information
Figure 7-43
embedded object containing external page
graphit/Shutterstock.com
Gl0ck/Shutterstock.com
You also can embed Web pages using inline frames with the iframe element
<iframe src=” url ” width=” value ” height=” value ”>
alternate content
</iframe>
where alternate content is the content that is displayed for browsers that don't
support inline frames. Thus, the following iframe element displays the content of the
Royal Wedding page at the IMDB Web site in a frame that is 400 pixels wide and
200 pixels high:
<iframe src=” http://www.imdb.com/title/tt0043983/”
width=”400” height=”200”>
</iframe>
Browsers support either the object element or the iframe element for embedded
Web pages. The iframe element is more commonly used on the Web; but if you are
writing your code in compliance with the strict application of XHTML, you should use
the object element.
 
Search WWH ::




Custom Search