Main Index |
Top Of Tree |
Tag Index |
Tag History
- What is it?
- The BASE tag is an optional element that provides a base address
for interpreting relative URLs when the document is read out of context.
- Attributes
- Href
- 2 | 3
| 3.2 | IE1
| M2 | N1
- Required? Yes
- Description:
Indicates the base URL to interpret relative URLS in the current document.
- Values:
Should be an absolute URL (no relative references.)
- Target
- 2 | 3
| 3.2 | IE3A1
| M | N2
- Required? No
- Description:
Specifies the common Target frame for hyperlinks to load to when
activated. The value for this attribute can be overridden on a
case-by-case basis by indicating a different value in an
A, AREA,
or FORM tag.
- Values:
Alphanumeric string representing the destination frame name. Special
reserved TARGET names apply here as well.
- Example
- <base
href="http://www.foo.com"
target="_top">
- Parent Model
- <head>
- Content Model
- This tag accepts no content
Tips & Tricks
- DTD Note: The one DTD that currently
takes the TARGET attribute into account is the one for Internet Explorer 3.
It lists the HREF attribute as #REQUIRED. This
is fine, but this seems to only hold if the browser does not support global
frame targeting. In the case of a frames-capable browser, the value would
more likely be #IMPLIED (not required.) This
would allow for a BASE tag with only a TARGET as an attribute - seems
very reasonable since HREF and TARGET control two mutually exclusive
browser features (name resolution and frame targeting.)
Browser Peculiarities
- Since the TARGET attribute is new, some browsers may improperly
handle the BASE tag because they are expecting only the HREF attribute
by itself.
Boring Copyright Stuff...