<BASE>
- Path InformationThis tag is used to set the base URL for the document. It must appear within the document head. When used with the href
attribute, all relative URIs will be interpreted as relative to the URI defined in the <BASE>
tag instead of the document's URI. If the target
attribute is used, then all links without a target
attribute will have the same target as the <BASE>
tag.
It is illegal HTML to close this tag. </BASE>
does not exist.
<BASE>
R |
href=
|
[CS] |
---|---|---|
|
Defines base URI. | |
This attribute defines the base URI to use when determining the location of a relative URI. The href attribute is required.
|
target=
|
[CS] | |
---|---|---|
|
Targets a frame or window with the given name. Target names must begin with a letter (A-Z,a-z). | |
|
Targets a new, unnamed window. | |
|
Targets the same window/frame as the source anchor. This is the default value. | |
|
Targets the immediate frameset parent (one level up). Defaults to "_self" if already at the top.
|
|
|
Targets the full window, cancelling all framesets. | |
This attribute changes the default value for target in the document's links.
|
Resolving Relative URIs:
If the <BASE>
tag of a document has href="http://www.foo.com/usr/docs/"
, then a link with href="../pictures/home.gif"
would point to http://www.foo.com/usr/pictures/home.gif
("../" goes up one directory to "usr/", and then goes into directory "pictures/" from there.)
Targets:
If the <BASE>
tag of a document has target="main"
, then all links in that document will load into the window/frame named "main" unless they have their target
set to something else. This is especially useful in frame toolbar.