HOW TO MAKE HYPERLINKS

for Dr. Pastore's Classes

Hyperlinks are made by simply adding the web page name to your home page address.

 

EXAMPLE ONE:

Suppose that you owned a web site named myhomepage.com

Suppose that you created a web page with information about yourself and saved the page as aboutme.html

Your link to this page would be:
http://myhomepage.com/aboutme.html

 

EXAMPLE TWO:

Suppose that you created another page with a list of your favorite sites and saved the page as hotlist.html

Your link to this page would be:
http://myhomepage.com/hotlist.html

 

In summary, all links to pages on your web site are simply made by adding the file name to your web site address!


HOW  FOLDERS AFFECT HYPERLINKS

 

Many webmasters organize files on their web site in folders.  When this is done, the folder name needs to be added to the hyperlink address.

 

EXAMPLE ONE:

Suppose that you owned a web site named myhomepage.com

Suppose that you created a folder on your web site that contained all of your web pages and graphics associated with the topic of "WebQuests."

Suppose that saved the folder as webquest1

Suppose that you created a web page saved as intro.html and put it in your folder.

Your link to this page would be:
http://myhomepage.com/webquest1/intro.html

 

EXAMPLE TWO:

Suppose that you owned a web site named myhomepage.com

Suppose that you created a folder on your web site that contained all of your web pages and graphics associated with the topic of your "portfolio."

Suppose that saved the folder as portfolio

Suppose that you created a web page saved as resume.html and put it in your folder.

Your link to this page would be:
http://myhomepage.com/portfolio/resume.html

***

There is an exception to these examples and that is when you add an index.html to your folder.  Please note that this is NOT the same index.html file as your home page!  See the following examples:

EXAMPLE THREE:

Suppose that you owned a web site named myhomepage.com

Suppose that you created a folder on your web site that contained all of your web pages and graphics associated with the topic of "research."

Suppose that saved the folder as research

Suppose that you created a web page saved as index.html and put it in your folder.

Your link to this page would be:
http://myhomepage.com/research

 

EXAMPLE FOUR:

Suppose that you owned a web site named myhomepage.com

Suppose that you created a folder on your web site that contained all of your web pages and graphics associated with the topic of "resources for classroom management."

Suppose that saved the folder as management

Suppose that you created a web page saved as index.html and put it in your folder.

Your link to this page would be:
http://myhomepage.com/management

 

As you may have observed, this method of using index.html files in folders would be used if the index.html is the primary file that you would want the user to link to in the folder.

CAUTION: The risk of using index.html files in folders is that you could accidentally replace your home page if the file is shipped directly to your web site rather than directly to the appropriate folder on your web site.

Raymond S. Pastore, Ph.D.
Professor of Education
Teacherworld.com
1148 McCormick Center
Bloomsburg University
Bloomsburg, PA 17815-1301
570-389-4236/4025