URLs: Uniform Resource Locators

Absolute URLs

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?

Important! Tips on directory and file names:

Directory Trees

Joss directory tree drawn by hand

Joss directory tree on a Mac

Relative URLs

Fragments

Jump to the description of Relative URLs in the URLs lecture notes

  1. Give the destination a name:

    <h2 id="relative">Relative URLs</h2>

  2. Add the destination name to the link:

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!