Back to index

LINKS


As you know, HTML stands for HyperText Markup Language. Hypertext is all about links which allow you to hop from one page to another. In this lesson, we'll talk about links. Here's a basic link which takes you to another page located in the same directory.

  <a href="another_page.html">Another Page</a>
  
Here's one for a page located on another computer:

  <a href="http://www.yahoo.com">Yahoo.com</a>
  
If you want the page to open in another tab, then add the TARGET attribute, like this:

  <a href="another_page.html" target="newpage">Another Page</a>
  
BTW, you should be aware that a web address is more properly called a Universal Resource Locator or URL for short. Do a quick online search and find the answer to this question:

     What is the difference between an absolute and a relative URL?


ASSIGNMENT:

You will create four pages. Each will have a different question as its title:

  1. What does URL stand for?
  2. What does HTML stand for?
  3. What is an absolute URL?
  4. What is a relative URL?
Below the answer to each question, place a horizontal rule. Beneath the HR have a section title: Related Questions. Finally, underneath the section title provide links to the pages which answer the three questions answered on the three other pages. Do this for each page.