Write HTML code that links to text files
Step 1: In this step we will just write HTML code that links to text files, and not worry about Perl at all.
Create an HTML file that shows
hello world
Click here to look at my file
How To Instructions:
Please read this hello world for HTML: http://www.w3schools.com/html/html_intro.asp
Add learning about links in HTML: http://www.w3schools.com/html/html_links.asp (and your file is a local link according to this tutorial)
Some facts you need to know:
1) Our panther server only allowsyour files in public_html to be accessed on the internet. Create the public_html folder using goweb.
2) How to construct your website URL by knowing your account number
- Your website name can be found by typing cd and then pwd. (
- Your website base url is www.adelphi.edu/~<your account number> /
- For example, if pwd shows
- /home/pe16132
- Then the website base url is www.adelphi.edu/~pe16132/
- To run your webpage, put all files inside public_html and put the html or perl script name after the account number as in:
- www.adelphi.edu/~pe16132/myscript.pl
How to :
- In vi, without any perl scripting, create step1.html
- Include these words in your file:
- hello world
- Click here to look at my file
- Start and end your html file as it says to in the tutorial with html and body tags that start and end the html and body containers
- Surround "Click here to look at my file" with an a tag as it says in the tutorial. Make any file in our public_html folder the link
- Use the instructions above to figure out your website URL (and it often says it when you log in)
- See the html file on the internet