ptg16476052
572 LESSON 20: Working with Frames and Linked Windows
Workshop
As if you haven’t had enough already, here’s a refresher course of questions, quizzes, and
exercises that will help you remember some of the most important points you learned in
this lesson.
Q&A
Q Is there any reason why you should sandbox iframe content from your own
server?
A The decision to sandbox content shouldn’t be made based on where the content is
coming from, but rather how reliable and trustworthy you find the source. If you
are posting your pages to a shared domain, you might have no knowledge of the
designers of another site on that domain. Sandboxing helps you maintain security.
Q What if I use the <frame> tag anyway?
A Most browsers still support frames, so your content will still work. However, it is
considered poor form. And with iframes and CSS, there are many options that don’t
have the drawbacks of frames while providing the same functionality.
Quiz
- Where does the keyword _self take readers if they click a link with that target?
- If you want a link to open in a named iframe, what attribute do you need to use?
- When a web page includes the
- What attribute of the
Quiz Answers
- The _self target is the default action for a link. The link will open in the same
browser context as the link itself. - The target attribute of the tag directs linked pages to load into the appropriate
iframe. - When a web page includes the
- The sandbox attribute provides some security for the reader and the website by put-
ting restrictions on what the iframe content can do.