<base>
uses one or both of the following attributes for the noted purpose: Attribute | Purpose | Misc |
href | Specify the document's base URL, used when parsing URLs (for example in <a href="…" … or <img src="…"> ). | The value can be accessed in JavaScript with Node.baseURI . |
target | The default navigable, used for following hyperlinks |
<base>
element in a document. <base>
element; they should always have a full URL. https://server.xyz/path/to/root/dir/sub/abc.html
and the second one to https://server.xyz/top/abc.html
. <base href="https://server.xyz/path/to/root/dir/"> <a href="sub/abc.html">relative link</a> <a href="/top/abc.html">absolute link</a>