That's a root-relative link. It's a relative link (somewhat akin to
../) but it begins at the root of the site. If a page three levels deep on the site begins a link with the forward slash, the remainder of the path will be relative to the root of the site.
A benefit to this form of pathing is fewer characters in the markup:
Another advantage is portability across domain changes. If
example.com content is moved to
example.org, for example, root-relative links will still work, assuming the same directory naming/layout is used. Especially useful if developing pages locally, then uploading to the web.
As with other types of pathing - relative (
../) and absolute (
http://...) this is still subject to updating links when files or directories are renamed or moved.
//somedomain.com/somedir/in some links, which uses the same protocol used for the current page, stackoverflow.com/questions/4978235/… stackoverflow.com/questions/4831741/…