Differentiate between relative and absolute hyperlinks.
Explain with example.
Answers
Answered by
1
Answer:
Quite simply, a relative link is relative to the current page. In the above example, it's right next to the current page (think: in the same folder). If the file is moved from where it is, then the link could break (it probably will). With absolute links, you're giving the exact, full address (URL) to the page.
Answered by
3
Answer:
Answer :-
Difference -
1. Relative is always in proportion to a whole. Absolute is the total of all existence.
2. Relative is dependent while absolute is independent.
Exanple-
ABSOLUTE => protocol://domain/path
RELATIVE => <a href="foobar.html">The Wonderful World of Foobar!</a>
Similar questions