Many HTML files contain relative URLs.
Consider the page http://metalab.unc.edu/javafaq/index.html
On this page a link to "books.html" refers to http://metalab.unc.edu/javafaq/books.html.