This is the homework for the “Iframes” lesson of the HTML class. It includes a short quiz (answers below) and a project you can do to practice what you've learned in this lesson.
- What does iframes stand for?
- Name three attributes of the
IFRAMEelement that are new in HTML5.
- Name the four target keywords and what they do.
- What three HTML elements are used to create a framed website (in HTML 4.01)?
- What is the primary reason HTML frames are obsolete in HTML5?
Add a small iframe to your web page. It can link to an external site or another page on your website. Make sure that it is not so large that it overtakes the rest of the page, but is large enough to read the content.
If you are sharing your work on the forum, include a link to your sample web page, or attach the HTML to your post. It's best to include a question in the subject if you want a response.
Answers to the Iframes Quiz
- Iframes stands for “inline frames.”
- The three new HTML5 attributes of the
- The four target keywords are
_blank. They cause links to open in the current frame, the frame right above the current frame, the top-level frame—removing all frames, and a completely new window or tab, respectively.
- You should use the
NOFRAMESelements to create an HTML 4.01 framed page. You should also use the HTML 4.01 frames document type.
- The primary reason that frames have been made obsolete in HTML5 is because they are not accessible.