🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

आधार यूआरएल स्थापित करने का एक बेहतर तरीका इसका उपयोग करना है:

A much better approach to establish the base URL is to use :

A
BASE element
B
HEAD element
C
Both (A) and (B)
D
None of these
Explanation

In HTML, the element is used to specify a base URL for all relative URLs in a document. When you set a 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 element:

 
<base href="https://www.examjila.com/"> <a href="/old-paper.html">Link to Page 1a> <a href="/online-test.html">Link to Page 2a>

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 element, the links would be resolved relative to the current page’s location.

टैग का उपयोग डॉक्यूमेंट के सभी रिलेटिव URL के लिए एक 'आधार' URL सेट करने के लिए किया जाता है।

Correct Answer: A) BASE element

Latest Updates