====== How can I create a web page in my PCN account? ======
===== Creating a web directory =====
First, you will need to have an account on //bohr//. In your home directory, create a directory called "**.www**" (dot www). This directory name is not arbitrary. It must be exactly as shown.
===== Creating a file named "index.html" =====
In the .www directory, create a file named **index.html**. This is your 'front page'. Your URL (Uniform Resource Locator, your website address) will point to this file as a default html file when your URL is accessed. Usually, your URL will be in the form: **http://www.physics.purdue.edu/**//~your_login//
===== Set protection mode =====
Often user home directories are created with restricted permissions. To enable your personal web space, execute the following command from a UNIX shell command prompt:
chmod o+x /net/aristotle/home/your_login
Next, you need to set the protection mode of the "**.www**" directory so that others can access your website. To do this, set your protection mode to "world readable". In your Unix shell command prompt in your home directory, enter:
chmod go+rx .www
Any file within your web directory that is not set to "world readable" will result in a "broken link".
===== Some HTML Basics =====
An HTML file basic components consist of "HTML tags" as follows: (blue text represents user-defined text string).
^In your HTML file ^Explanation ^
| |An **HTML** file must begin with this tag and end with |
| |Header information|
|Your webpage title |Title of your webpage|
|
|
| |This tag specifies the color background, color of text, linked text, and visited linked text (vlink) within the body of the **HTML** file. You may also put an image on the background with the BACKGROUND definition. This callout will supersede "COLOR" definition.|
| |Within the **"BODY"** tags is the main content of your webpage with plain text, linked text, and images. Some link aspects are discussed below.|
|