base

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

Platform Support

IENetscapeMozillaOperaSafari
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

AttributeIENetscapeMozillaOperaSafari
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

EventIENetscapeMozillaOperaSafari
Fires when Print or Print Preview finishes laying out the content in a LayoutRect with the source data.
4.0+nononono
 
Fires when the mouse pointer enters the element.
4.0+nononono
 
Fires when the mouse pointer leaves the element.
4.0+nononono
 
Fires when the ready state of the element changes.
4.0+nononono
 

Availability

W3C HTML 4.01

text_html aptana_docs