I've been wondering how do other websites do their navigation links. What most beginners like me do is put the whole link inside the tag
<a href="www.example.com/news.html">News</a>
or something like this:
<a href="news.html">News</a>
But I've seen a lot of websites lately that does this:
<a href="/news.html">News</a>
and then the browser address bar display it like this
http://www.example.com/news/
First I want to know how do you call this method? and what are the advantages of doing this. and lastly, how does it actually work?.
I want to research about it but I don't know what to type on google. I did try a lot of keywords I could think of that relates to this but nothing comes close to what I'm looking for