आधार यूआरएल स्थापित करने का एक बेहतर तरीका इसका उपयोग करना है:
A much better approach to establish the base URL is to use :
A)
B)
C)
D)
Explanation:
In HTML, the <base>
element is used to specify a base URL for all relative URLs in a document. When you set a <base>
tag, all relative links (e.g., images, stylesheets, links) will be resolved relative to the specified base URL. This is particularly useful when you want to avoid hardcoding URLs in multiple places.
Example of using the <base>
element:
In this example, both links will be resolved as:
https://www.examjila.com/online-test.html
https://www.example.com/old-paper.html
Without the <base>
element, the links would be resolved relative to the current page’s location.