Using relative URLs


show more Using relative URLs provides you with in-depth training on Developer. Taught by Bill Weinman as part of the XHTML and HTML Essential Training show less
please wait ...

Using relative URLs

In this lesson, we're going to talk about relative URLs and these are URLs that don't have all of the different parts and are just relative to the current location of the file that has the link in it. In other words, you have a link like this, which does says here.html. The browser will assume that file exists in the same location as this page here does. And so this page exists on the web at this location. And so we'll just take this last part of it, including the host name and the path all the way up to the file name and I'll just assume that all that part is the same and the only thing that changes is the file name there.

So, let's take a look at this page in browser and you'll see this is loaded up on my website at pw.org and at that path and this is hyperlinks.html. And this link here is the link we're looking at it and it just has this here.html in the link and so when I hover my mouse over the link, you'll see the title bar at the bottom, shows the ...

Using relative URLs
Video duration: 3m 5s 4h 44m Beginner

Viewers:

Using relative URLs provides you with in-depth training on Developer. Taught by Bill Weinman as part of the XHTML and HTML Essential Training

Subjects:
Developer Web
Software:
HTML XHTML
Author:
please wait ...