![[Bradley University]](/images/Wordmark.gif)
Also, you can use your browser to view the HTML source of any WWW document you find. In lynx this is accomplished with the backslash ("\") key; in Netscape choose "View," then "Document Source." This is a great way to "learn by example" what a typical HTML document looks like.
$ cd
$ mkdir public_html
$ chmod o+x .
$ chmod o+x public_html
Alternately, if a particular file won't be using any extended features of HTML (inline images, hypertext links, headers, etc.), you can make it a regular, plain-text file just as easily. This won't show up as pretty in graphical readers such as Netscape, but it could save you a little effort. If you do it this way, do not end the filename with ".html".
$ chmod o+r filename
If you have several such files in the same directory, you can hit them all at once just as easily:
$ chmod o+r *
http://machinename/~loginname/filename
For example, consider a user named "foo" who is using bobcat and has made a world-readable file called "bar.html" in his "public_html" directory. The URL of this file is
http://bobcat.bradley.edu/~foo/bar.html
As with any document on the Web, you can access it from the system prompt by typing "lynx" followed by the URL:
$ lynx http://bobcat.bradley.edu/~foo/bar.html
NOTE:This is one case when you can safely omit the ".bradley.edu", and lynx will infer it since you are already within the bradley domain. However, be sure to always include complete or relative URLs in your documents or web-readers around the world will have trouble reading your documents.
$ mkdir newdirectory
$ chmod +x newdirectory
http://bobcat.bradley.edu/~foo/
(Note: the trailing slash IS important!)
Because of this shortcut, it's a good idea to use "index.html" as the filename of the "main" document in each directory you create; the first screen which contains links pointing to the various other documents you have in that directory.
And that's really about all there is to it! Good luck with your homepage!
Last update: 2-Nov-99