(Spring 2008) | |||||||||||||||||||||||||||||||||||||||||||||
|
Lab 1 : Building Web PresenceLab Overview
The purpose of this lab is to create your own webpage using HTML. You should have read a HTML tutorial from Assignment 0. Lab ProceduresYou should review the lab policies and make sure that you have the contact information for your lab TAs.Setting up a cps001 Folder on ACPUB System
After following the above directions you should have successfully created a folder inside your Duke provided web space. Naming the folder "cps001" just helps us find the code that you'll create for this class and seperate it from anything else that you might want to put in your Duke webspace. We would also appreciate it if, inside of the cps001 folder, you made separate folders for each of your submissions (lab1, lab2, etc.). To get your webpage to show up inside your Duke webspace, all you have to do is save your .html file inside the public_html folder. Note that it also works to save it inside your cps001 folder since that's inside of the public_html folder. To view your webpage via the internet, open a web-browser (ie Firefox, Safari, Internet Explorer, etc.) and enter the following address in the address bar: www.duke.edu/~xyz99/cps001/ Replace xyz99 by your Duke ID. This is how your Lab TAs will view and grade your labs, all of them. If your webpage code is not posted online or is not named so that we can identify which file you're trying to submit for your lab grade your TA may not be able to give you a grade. Thus, it is important that all students follow a uniform naming scheme.
Create a WebpageThe following tutorials explain how to create a webpage in the lab environment.Webpage ContentYour webpage must include the following content.
Webpage StyleIn constructing your page, you should include at least one of EACH of the following HTML elements.
Extra CreditRead through the course CSS Tutorial or one from the web such as this CSS Tutorial from W3C or another CSS Tutorial from W3 schools. Once you have an idea of how to use CSS, use your new skills to include enough to satisfy all of the 5 CSS requirements given below. Include at least one of each: Pieces To Turn In (2)
Note that the last requirement is intended to make you put in "conflicting" rules so you can see which rule gets precedence. Remember that you can target instances of an HTML element not just with the tag name, but also with what other elements it is contained within or by using a class or id attribute to distinguish it. SubmittingYour lab TAs will look for your lab1.html webpage file in the directories described above, so make sure that you name your files accordingly. Each webpage that you create should contain a comment describing any collaborators that you had and what resources you used. An example comment is below:
You will need to submit this information for every lab. If you do not turn in this list, you will have many points taken off.
When you finish changing your page, make sure you saved the final version and then start shutting stuff down. You mostly start hitting the little X's in the upper right-hand corner of each window. If you are about to destroy something important, you will get a warning, so do it carefully. Make absolutely sure you do not leave any windows open! If you do, anyone who walks by feeling malicious can get you in trouble. And that's it. You're done! LOGOUT OF YOUR MACHINE BEFORE LEAVING THE LAB! (Double-click the Logoff icon on the Desktop) Extra HelpCheck the readings from Assignment 0 or the tutorials linked above. Also, raise your hand and ask a TA for help. In addition to the readings, some other things to remember are:When given a web-address which ends in a folder name like www.duke.edu/~xyz99/cps001 (where cps001 can be any folder), by default the browser looks for an html page named "index.html" so make sure you have named your file correctly. (All letters should be lower-case) If you want to name your html page something other than "index.html" then the path to that page should be given with the name of the page included. e.g.: www.duke.edu/~xyz99/cps001/not_named_index.html Also, the address to your web folder (which is your public_html folder) is www.duke.edu/~xyz99/ . Although, you might choose to have a lot of folders and data on your ACPUB account only the files/folders which you create or copy into the public_html folder will be accessible over the internet. This lab is an introduction to HTML that uses a basic approach to creating HTML webpages. Later, we will see how to do some more tricks with CSS presentation. The lab has been adapted from the Spring and Fall 2006 labs developed by Siddhesh Sarvankar and Sam Slee. |
||||||||||||||||||||||||||||||||||||||||||||
Last updated Sun Apr 27 15:32:04 EDT 2008 |