GATE | GATE-CS-2015 (Set 3) | Question 65

In a web server, ten WebPages are stored with the URLs of the form; where, var is a different number from 1 to 10 for each Webpage. Suppose, the client stores the Webpage with var = 1 (say W1) in local machine, edits and then tests. Rest of the WebPages remains on the web server. W1 contains several relative URLs of the form “var.html” referring to the other WebPages.

Which one of the following statements needs to be added in W1, so that all the relative URLs in W1 refer to the appropriate WebPages on the web server?
(A) <a.href: “”, href: “…var.html”>
(B) <base href: “”>
(C) <a.href: “”>
(D) <base href: “”, range: “…var.html”>

Answer: (B)

Explanation: The tag specifies the base URL/target for all relative URLs in a document.

There can be at maximum one element in a document, and it must be inside the element.


Quiz of this Question

My Personal Notes arrow_drop_up