Before doing anything on warp today, we're going to discuss:
After we've discussed the above, open your favorite web browser to your homepage on warp. Then log in on warp, go to your public_html directory, and open the file index.html in emacs in a new window (i.e., end the command to bash with an ampersand (&)).
Edit your homepage so that the content of the list item in the unordered list is now a hyperlink that will take the reader to the class homepage. Open your edited homepage in a browser, proofread your work, and test the hyperlink. If you have any problems, ask for help.
I'll do most of the following on the screen. Be sure to ask if you have any questions. If you're confident in what you're doing, you can go ahead and work at your own pace. Otherwise, follow along.
Now you're going to create some HTML files and subdirectories so you can practice setting anchors and using relative and absolute URLs.
The template should also contain an address section. Fill this in, however, with your name as author and today's date as the “last modified” date.
Edit the list of hyperlinks on your homepage,
adding another list item to the list that's already
there. This list item will contain an anchor tag.
The content of the anchor should read
Look at subdirectory 1
and the href attribute of the anchor should
be a relative reference to the file thursday.html
in sub1.
Do the same thing for subdirectory 2, again using a relative reference to the file thursday.html in sub2.
Now, edit the file thursday.html in your sub1
directory. Add an anchor tag to the first list item.
The content of the anchor should read
Go to my homepage
and the href attribute of the anchor should
be an absolute reference to your homepage.
Finally, edit the file thursday.html in your sub2
directory. Add an anchor tag to the first list item.
The content of the anchor should read
Go to my homepage
and the href attribute of the anchor should
be a relative reference to your homepage.
This assignment is due at the beginning of class on Tuesday, February 6.
If you are having trouble, computer science TAs are available in Burke 005 on Thursday, Sunday, and Monday evenings. (Check the CAVE schedule.)
You should read chapter 3 in Duckett in connection with this assignment. Read it first if you're not really clear on what we did in lab; if you've been following along just fine, read it as a summary and wrap-up of the topic after you do the homework. (As part of your reading, in your notebook answer exercises 2 and 3 at the end of the chapter.)
The Homework Assignment: Make sure you did everything correctly in this Lab assignment.
[ Return to the CPSCI 105-01 homepage ]
Brian J. Rosmaita <contact me>