From http://www.w3schools.com (Copyright Refsnes Data)
The base element specifies a base URL for all the links in a page.
None
Note: The <base> tag must go inside the head element.
Note: Maximum one <base> element in a document.
Assume that the absolute address for an image is:
<img src="http://www.w3schools.com/images/smile.gif" /> |
Now we insert the <base> tag, which specifies a base URL for all of the links in a page, in the head section of a page:
<head> <base href="http://www.w3schools.com/images/" /> </head> |
When inserting images on the page in the example above, we just have to specify the relative address, and the browser will look for that file using the full URL, "http://www.w3schools.com/images/smile.gif":
<img src="smile.gif" /> |
Attribute | Value | Description | 5 | 4 |
---|---|---|---|---|
href | URL | Specifies the URL to use as the base URL for links in the page | 4 | 5 |
target | _blank _parent _self _top |
Where to open all the links on the page. This attribute can be overridden by
using the target attribute in each link.
|
4 | 5 |
NONE
One target for all links
How to use the <base> tag to let all the links on a page have the same target.
From http://www.w3schools.com (Copyright Refsnes Data)