Relative links

This assignment tests your understanding of relative links.

If a user clicks on a link to:

<a href = "bob.htm">link text</a> the client will retrieve the file bob.htm from the same directory as the document that contains the link.

If a user clicks on a link to:

<a href = "bob">link text</a> the client will retrieve the file index.htm from a sub-directory named bob.

Which file will be retrieved if the user clicks on a link to:

1. <a href = "tom.htm">link text</a>

 

2. <a href = "tom">link text</a>

 

3. <a href = "../joe.htm">link text</a>

 

4. <a href = "../../joe.htm">link text</a>

 

5. <a href = "fred/bob/sam.htm">link text</a>

 

6. <a href = "fred/bob">link text</a>

 

7. <a href = "/bob.htm">link text</a>

 

8. <a href = "/bob">link text</a>

 

9. <a href = "../bob">link text</a>