Ten server pages have URLs http://www.yourname.com/var.html, with var from 1 to 10. A local edited copy of page 1 contains relative links such as "var.html". Which markup makes those links resolve to the server pages?
The HTML base element sets the base URL used to resolve document-relative references. Setting its href to the server root makes a link such as 2.html resolve to http://www.yourname.com/2.html, even in a local copy. An anchor does not set the document base, and range is irrelevant. Thus B.
More Application Layer: DNS and HTTP questions
GATE 2026 CS (CS1) Q19– Which of the following statements is/are true with respect to the interaction of a web…
GATE 2026 CS (CS2) Q22– Which one of the following protocols may need to broadcast some of its messages?
GATE 2024 CS (CS1) Q16– A user starts browsing a webpage hosted at a remote server. The browser opens a single TCP…
GATE 2023 CS Q52– Suppose in a web browser, you click on the www.gate-2023.in URL. The browser cache is…
GATE 2022 CS Q35– Consider the resolution of the domain name www.gate.org.in by a DNS resolver. Assume that…
GATE 2020 CS Q35– Assume that you have made a request for a web page through your web browser to a web…