HTML and CSS Reference
In-Depth Information
I think the problem is that the
browser thinks the files are still in the
same folder as “lounge.html”. We need to
change the links so they point to the files in
their new folders.
Right. We need to tell the
browser the new location
of the pages.
So far you've used
href
values that
point to pages in the
same folder
. Sites
are usually a little more complicated,
though, and you need to be able to
point to pages that are in
other
folders
.
To do that, you trace the path from
your page to the destination file. That
might mean going down a folder or two,
or up a folder or two, but either way we
end up with a
relative path
that we can
put in the
href
.