Page 19 of 36PREVNEXT

Hyperlinks I: The basics

Diagram depicting a hyperlink pointing to another page within the same Web site

Using a relative URL, hyperlinks can go to pages within your site.

As you learned from the previous lesson, if you want to link to another page in your site, then you should use a relative URL.

It's important to use relative URLs within your Web site. if you end up moving a group of pages, then you don't have to change all of the URLs if the pages are in the same relative position to each other.

You could use an absolute URL to link to another page in your site if you really wanted to. However, if your site moves at any time, the path of the absolute URL might not be correct anymore, and the link might break. We'll talk about broken hyperlinks in more detail later.

Page 19 of 36PREVNEXT