Lesson Practice 3-2: Working with Iframes
Task 1: Create an Iframe-content page
- Open template.htm in notepad++.
- Save this file in your layout folder as iframecontent.htm.
- Copy and paste all but the first and last paragraphs of the Lorem Ipsum document.
- Resave the file.
Task 2: Create an Iframe page
- Open template.htm in notepad++.
- Save this file in your layout folder as iframedemo.htm.
- Add Content:
- In the title element, add the title: Demonstration of an Iframe
- Create an h1 element with the same text.
- Add a paragraph element containing the first paragraph of text from the Lorem Ipsum document.
- Add another paragraph element containing the last paragraph from the Lorem Ipsum document.
- Between paragraph elements, add an iframe element.
- Add your iframecontent.htm file as the source.
- Set the height of the frame to 400 and the width of the frame to 500.
- Save the file and preview your page in the browser. Make any adjustments needed and save the file.
Task 3: Add the iframe file-link to your Index file
- Open your index.htm file.
- To the Layout section of the page, add a hyperlink to your iframe.htm file, using the same pattern of link text and title attributes as your other links.
- Do not add the iframecontent page to the index, but don't forget to publish it.
- Save the file and test your new link.
- Publish your finished files in your folder of the class Share file.
- Open the index file in the new location and test your links.
|