🚀 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)
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:

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

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.

Latest Updates