Your second exercise is to produce a spoof of the course homepage. To do this, you will take a copy of the source of the web page; save it to your desktop; edit it and then view the edited page in the browser.
- Visit the course home page.
- Use the Save As selection from the File menu of the Browser to save the Page Source to your desktop.
- Now use the Open File... selection from the File menu in the Browser to open this file. You should see something almost like the original home page. We'll see a bit later why it appears differently.
- Now open the TextEdit application on the Mac (if you're using another operating system, you can use any editor that will cope with plain text files.
- Follow the instructions given by Apple to set TextEdit up as a plain text editor http://support.apple.com/kb/ta20406
- Open your saved Page Source file using the Open File... selection from the File menu in TextEdit. You should see the raw HTML source of the page.
- Experiment by editing parts of the page in TextEdit and reloading the page in the Browser to alter the content.
Because Apple have a bug, you'll have to edit the extension each time you save the file.
The appearance of the web page is controlled by style files, and some image files. To make the page look just like the original you will have to alter your Page Source file to tell the browser where to find these style files.
Look for the following section near the start of the Page Source:
<link href="/styles.css" rel="stylesheet" type="text/css"></link> <link href="il1.css" rel="stylesheet" type="text/css"></link> <link href="/images/tinyi.ico" rel="icon" type="image/x-icon"></link> <link href="/images/tinyi.ico" rel="shortcut icon" type="image/x-icon"></link>
Edit it, by changing the second line then adding a new line at the beginning, so it reads:
<base href="http://www.inf.ed.ac.uk"></base> <link href="/styles.css" rel="stylesheet" type="text/css"></link> <link href="/teaching/courses/il1/il1.css" rel="stylesheet" type="text/css"></link> <link href="/images/tinyi.ico" rel="icon" type="image/x-icon"></link> <link href="/images/tinyi.ico" rel="shortcut icon" type="image/x-icon"></link>
Hello :)
ReplyDeletethis course seems interesting :) that's the smartest thing I can come up with at this moment.
ReplyDeleteI LOVE INFORMATICS LITERACY
ReplyDeleteThis lab exercise is great! :D
ReplyDeleteCK
This is a comment!
ReplyDelete