Writing HTML | About | FAQ | Alumni | References | Tags | Lessons | back | next |

8c. Links to the World: Internet Sites

You've been revving your engines, and itching to hit the Information SuperHighway, right? Here, we will extend our use of anchor tags to create links to resources out there on the Internet.

Objectives

After this lesson you will be able to:

Lesson

Note: If you do not have the working document from the previous lesson, download a copy now.

HTML for Anchors to the Internet

Linking to a site on the Internet combines what we have worked on earlier in the lessons on Links to Local Files (Lesson 8a) by incorporating what we have learned about URLs (Lesson 8b). The full HTML format for an anchor link to an item on the Internet is:

     <a href="URL">Text to Activate Link</a>
where URL is the full Uniform Resource Locator, in quotes, the address for the Internet site where you want to send the viewer. The string Text to Activate Link is what will show up as hypertext in your web browser (usually but not always) underlined and in blue. When a viewer clicks on this hypertext, the web browser will link them to the Internet site indicated by the URL. Remember that a URL can be a link to another World Wide Web (WWW) server, Gopher server, FTP site, or any text, graphic, sound, video file on these servers.

Now, we will add a hypertext link to a NASA site that has information about volcanoes on the planet Mars. Follow these directions to add anchor links on your HTML document:

  1. Open your index.html file in the text editor.
  2. Below the heading, Volcanic Places on Mars, enter the following text:
    
    <a href="http://bang.lanl.gov/solarsys/mars.htm">
    Mars</a> has its fair share of volcanic landforms, 
    including the largest known volcano in the solar system,
    <a href="http://bang.lanl.gov/solarsys/raw/mars/olympus.gif">
    Olympus Mons</a>
    
    Note: We've made a link to two different types of information. The first hyperlink connects to a web page that describes information about the planet Mars. The second is a link to a small GIF image of a Martian volcano.
  3. Save and Reload in your web browser

A Quick 'n Easy Way to Enter URLs in Anchor Tags

As you navigate among different web pages, the URL of the currently visible page can be viewed at the top of the web browser window (You may have to look for a menu option to Display URLs). For example, in this document, the URL looks something like:

   http://www.mcli.dist.maricopa.edu/tut/tut8c.html
You can use your mouse to select and copy a URL from the web browser display and then paste it in the anchor tag of your HTML document. This is much more efficient than writing URLs down on paper (some are quite long!).

Now we will add some links to other sites that we will list under the References section of our Volcano lesson. One such site that might offer relevant information is the US Geological Survey.

Follow these steps:

  1. Open your HTML document index.html in the text editor
  2. Under the heading "References", enter:
    
    <ul>
    <li> <a href="">Educational Resources from the
    USGS</a>
    </ul>
    
    NOTE: We've constructed the hypertext link but need to enter a URL between the quotes.
  3. Connect to the US Geological Survey Education Index.
  4. From the web page, use the mouse to Select the URL as displayed in the URL display field.
  5. From the Edit menu, Copy the URL.
  6. Now, return to your HTML document index.html
  7. Click the mouse once between the two quote marks you inserted in step #2 and Paste the text you copied in step #5. The final anchor tag should look like:
    
    <a href="http://info.er.usgs.gov/education/index.html"> 
    Educational Resources from the USGS</a>
    
    Note: You have just set up the HTML structure for an Unordered List, with each list item a hypertext link to a site that offers information about volcanoes. For a review of lists, see lesson 6

For additional practice, explore some of the following Internet sites with resources on Geology and/or Volcanoes. Copy the URLs and construct the hypertext links to at least two more sites in your References section:

Sites with Information on Volcanoes:
Alaska Volcano Observatory * Cascades Volcano Observatory * Michigan Tech Volcanoes Page * NASA Earth Observing System (EOS) IDS Volcanology Team * Volcano Information Center * Volcano/Earth Science-Oriented Servers * Smithsonian Global Volcanism Program (GVP) * Volcano Watch Newsletter * JASON Project VI: Island Earth

Sites with General Information on Geology:
Yahoo: Earth Science * Earth Resources Observation Systems (EROS) Data Center * Tradewave Galaxy * NASA Observatorium * United States Geological Survey * WWW Virtual Library * NGDC Natural Hazards Data

Check Your Work

Compare your web page with a sample of how this document should appear. If your web page was different from the sample or the links do not properly connect to a remote site, review the text you entered in the text editor. Note that your list of references may be different from the example.

Review Topics

  1. What is the address for an item on the Internet?
  2. What steps did you take for creating an anchor link to the NASA Internet Site?
  3. What shortcut was identified for putting an URL into an anchor link?
  4. Tell a colleague or friend about any other links that you put in your document.

Independent Practice

Create anchor links from your own web page that connect to some of the URLs addresses you have discovered.

Coming Next....

In the next lesson you will create links that connect to different sections of an HTML document.

GO TO.... | Lesson Index | back: "URLs" | next: "Named Anchors" |

Writing HTML Lesson 8c: Links to the World: Internet Sites
©1995, 1996, 1997 Maricopa Center for Learning and Instruction (MCLI)
Maricopa Community Colleges, Arizona

The Internet Connection at MCLI is Alan Levine --}
Comments to levine@maricopa.edu

URL: http://www.mcli.dist.maricopa.edu/tut/tut8c.html