And we got another Q&A video for you, and this one is going to be talking about something that you
may have seen yourself while following along these videos, and that is the fact that this file over
here is different than, let's say if you go to a website and you see, what does that mean?
If you go into our example, you also saw here that we have an anchor tag that references new page dot
HTML that has nothing like file or HTP in front of it.
And then you also saw that the images here are referencing some sort of a Web site that links to a picture.
So what's the difference here?
The difference here is that the first is using the file protocol and that means that this Web page,
I can't really access it outside of my computer.
This is using something called a relative path.
If I go into my indexed e-mail, I am saying to link to new page dot html relative to where indexed
HTML is.
So if we go to our desktop, you see that indexed e-mail lives in the same directory, which is the
desktop as new page.
So I can reference it through here.
If I created a new folder, let's say test, I would have to reference it this way.
So let's let's check here.
If I save this and go into the Web page, refresh and click new page.
I'll get your file was not found.
But now if I go into my desktop and create.
Test and I put the new page in here and let's bring back.
Everything refresh and click on you page, this is now working, and you can see over here that I'm
accessing it through desktop test, new page.
So that's called the relative path.
So relative to where indexed HTML pages, I am saying index site HTML.
I want you to access from test new page HTML if you look at the images.
You'll see that we have something different, we're accessing the image through HTP, which we'll get
into later videos when we talk about servers, but this is how we access files over the Internet.
If I wanted this anchor tag this new page to actually link to something, maybe another website, maybe
to this hilarious gif.
Well, I can copy this link.
My sublime text, and now I can just copy this with the GPS protocol.
And now this is an absolute link, no matter where I reference this, if I put it into new page, that
HTML or index DOT e-mail, no matter what this link.
We'll get me to this gif, so let's test that out, I say this, I refresh and I click on new page and
look at that.
We have the gif.
All right, hopefully that answers your question, we'll get into a deep and dips later on in the course,
but for now, keep that in mind that there is absolute path and then there is relative that.
I'm going to fix that so we have it back for the next video, I'll see you on the next one.
Bye bye.