http:// |
cs.wellesley.edu/ |
~cs110/lectures/L03-html/ |
URLs.html |
protocol | server.domain | path | filename |
FirstClass from a browser: https://firstclass.wellesley.edu/
Protocol? Filename?
cats_and_dogs.html
, not
cats and dogs.html
cats.html
not the same as
Cats.html
buffy.html
to the file
willow.html
<a href="willow.html">her best friend Willow</a>
mythology.html
to the file angel.html
<a href="cast/angel.html">Angel, the vampire with a soul</a>
host.html
to the file season3.html
<a href="../season3.html">the Host returned in season 3</a>
buffy.html
to the file comics.html
<a href="../../comics.html">another layer in the comics</a>
comics.html
to the file gunn.html
host.html
to the file buffy.html
Jump to the description of Relative URLs in the URLs lecture notes
<h2 id="relative">Relative URLs</h2>
http:// |
cs.wellesley.edu/ |
~cs110/lectures/L03-html/ |
URLs.html# |
relative |
protocol | server.domain | path | filename | fragment id |
In the same file, just use the id
name:
<a href="#relative">Relative URLs</a>
Check the table of contents on a CS110 lecture notes page!