Week 7 Lab

Brennen Sager


Directions: Links are an essential part of the web. Understanding the different types and when to use them is a skill a web developer needs.

Part 1: Recognizing Types of Links


Create an HTML document called wk7.html. Then match A or B to F or G. Explain why you matched the items. Be sure to include all of the information in your answers.



A. Absolute --> G. This type of link is a complete path that always includes the protocol

I matched A with G because absolute links include the complete path that always includes the protocol. This type of link is used to navigate to external sites

B. Relative --> F. This type of link is in relation to the current file to the linked file.

I matched B with F because relative links describe the path relative to the current location. These types of links can only be used within the same website.

Part 2: Coding


In the HTML file, you created in part 1. Complete the following tasks:


Create an absolute link to Hawkeye's website.

https://www.hawkeyecollege.edu

Create a link to your domain name.

https://www.brennensager.com/IWD

Did you use a relative or absolute link? Explain your choice.


I chose to use an absolute link. The reason why I chose an absolute link is because I am working on this lab externally outside of my website (I am using an html file locally on my computer).

Whatever type you didn't do above, create now.

../index.html ‹-- this link takes you to the IWD index.html
../ ‹-- this also takes you to the IWD index.html

From a user's perspective, do you see any differences between the two link types?


There is a big difference btween the two different types of links. The links that are absolute are significantly longer than the links that are relative. Relative links would be the much better option to use when linking throughout the same website, because they are simpler and shorter.