In this assignment you will create a home page for your personal website and publish the website on your personal web space1 of Ghent University. You do this by following this step-by-step plan:
Use your favorite text editor to put the following text in a text file. The text adopts the HTML2 (HyperText Markup Language) format that is used for building websites. Whitespace is ignored in this format. Save the file as index.html. First create the file on your local computer before copying it to your personal web space of Ghent University (transferring files from one computer to another computer is an important part of this assignment).
<html> <head> <title>My First Website</title> <style> body { background:url('dolphins.png'); } div.page { margin:auto; width: 600px;} p { text-align: justify; } p.quote { font-weight: bold; } p.author { text-align: right; } </style> </head> <body> <div class="page"> <h1>Quote of the day</h1> <p class="quote"> "It is of interest to note that while some dolphins are reported to have learned English — up to 50 words used in correct context — no human being has been reported to have learned dolphinese." </p> <p class="author">— Carl Sagan</p> </div> </body> </html>
Download the image dolphins.png3 in the same directory where the index.html file is saved. Open the index.html file in a browser to see a graphical rendering of the web page.
Now that you have the first prototype of your home page, we will publish the website by copying the files index.html and dolphins.png to the WWW directory of the webhost webssh.ugent.be. How this can be done is described under secure file copy4. To make the files visible to the outside world, you have to make the files readable for all users. This can be done by executing this Unix command on the webhost:
$ chmod o+r index.html dolphins.png
If all has gone well, you can now view your website at the following URL5
http://users.ugent.be/~login/
where the term login in the URL must be replaced by the username of your UGent account6.
Feel free to customize the home page as you like (another quote, another background image, …).
Do not forget to click the submit button below when you are done.
In a Unix environment you can use the scp command to copy files between two computers (for example from helios.ugent.be7 to webssh.ugent.be8). This command uses the same security protocol as the ssh command. Windows users can also use WinSCP9 (also available from Athena10) for copying files between computers.