Links | Sololearn: Learn to code for FREE!

+1

Links

What does it mean for links to be either absolute or relative?

3/30/2018 1:36:06 PM

Chidera

1 Answer

New Answer

+1

Absolute link means when you link to a different website. Suppose my domain is http://mydomain.com. If I create a link to another website : http://yourdomain.com/path as <a href = "http://yourdomain.com"> Link to another website </a>, it is called absolute link / absolute url Relative link means linking to another location( page) within the same site. For the page which is on the same folder as current file we can simply hyperlink using the name of file. For other directories, we use relative paths <a href = "mypage.php"> mypage </a>