![]() |
| IE | FF | Op | Saf |
|---|---|---|---|
| Full | Full | Full | Full |
The base element is used to define the URL to use as base URL for all links etc. on a page. The base element is contained in the head of a document.
| Attribute | Value | Description |
| href | URL | Defines the URL to use as base URL for links in the document. |
| target |
_blank |
_blank - all links in the document will open in new windows. _self - all links will open in the same frame. _parent - all links will open in the parent frameset. _top - all links will open in the full browser window. framename - The links will open in the frame with this name. |
Assume that we have an image at 'http://www.glubase.com/images/image.gif'. With the following code we can display the image anywhere in the document using '<img src="image.gif" \>'.
<head>
<base href="http://www.glubase.com/images/" \>
</head>
Comments