From the course: HTML Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

URL paths

URL paths - HTML Tutorial

From the course: HTML Essential Training

Start my 1-month free trial

URL paths

- Absolute URLs are just one way to form a link. Instead, whenever we are linking to something that's on the same site, in the same domain name as the page that has the link, we can use what's called a relative URL. Let's imagine we're building a big website. Eventually we're going to launch this site at http://www.awesomedogs.com but meanwhile I'm working on a copy of the site on my local computer, adding a menu bar. Later, we're going to put copies of the site on different servers with different URLs for testing and review. If you use the absolute URL for all the links, the browser will keep trying to get to the pages or files at http://www.awesomedogs.com, we don't want that. When I'm working locally, I want all the links to connect to the local copy of the files. When you put a copy of the site on a testing server, you want all the links to point at pages and files on the testing server. We want a way to leave out the…

Contents