I started learning html recently, and one thing that really confused me is why do some links have a forward-slash("/") before the path and some links don't?
ie.
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
vs.
<dt><a href="reset/index.html">Reset CSS</a></dt>
Is one a relative path and one an absolute path? and how do href's work exactly? does it just stick on the path name after the base url?
aelement. It also has links to the URL standard if you are really curious tools.ietf.org/html/rfc3986. RFCs and the HTML 5 standard can resolve a lot of questions. They also tend to be more accurate than online blogs etc, but are definitely not as easy to read.