# base

Specifies a base URL for all of the relative URLs in the document to use.

## Platform Support

IE | Netscape | Mozilla | Opera | Safari
--- | --- | --- | --- | ---
2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+

## Example

This example defines the base URL in this document to be "http:www.aptana.com/docs/", all opening in a new, blank window:

    <base href="http://www.aptana.com/docs" target="_blank" />

## Remarks

Use the <base /> tag when you want to define a base URL for the relative URLs in a document. Remember to self-close your <base / > tags.

## Attribute Detail

Attribute | IE | Netscape | Mozilla | Opera | Safari
--- | --- | --- | --- | --- | ---
href [url] Path or URL for the linked document or object. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
id [element-id] Unique identifier for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
target Example values: "myCat.html" (url), "_blank", "_self", etc. Target window to use for opening the linked document. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+

## Event Detail

Event | IE | Netscape | Mozilla | Opera | Safari
--- | --- | --- | --- | --- | ---
onlayoutcomplete Fires when Print or Print Preview finishes laying out the content in a LayoutRect with the source data. | 4.0+ | no | no | no | no
onmouseenter Fires when the mouse pointer enters the element. | 4.0+ | no | no | no | no
onmouseleave Fires when the mouse pointer leaves the element. | 4.0+ | no | no | no | no
onreadystatechange Fires when the ready state of the element changes. | 4.0+ | no | no | no | no

## Availability

W3C HTML 4.01

text_html aptana_docs