Name
Base
Description
Specifies the base URL for resources in the web page. It must be used
within the HEAD tag.
For example, if the base URL is set to 'http://www.performancemodifiedcars.co.uk/'
and a link pointed to 'top_modified_feature_cars.htm', the browser would
navigate to http://www.performancemodifiedcars.co.uk/top_modified_feature_cars.htm,
whatever site the web page was part of.
Attributes
HREF
The URL where the resources are located.
TARGET
Specifies the target frame where links will open to. As well as name of
frames, there are predefined values that can be used to open the page in a
specific location:
| Value |
Description |
| _blank |
Open in new window |
| _parent |
Open in parent frame |
| _self |
Open in same frame |
| _top |
Open in current window, regardless of frames used |
This can be overridden by using the TARGET attribute within the A
tag.
Related Tags
The BASE tag is used within the HEAD tag.
Example
Page hosted on http://www.martin2k.co.uk:
Code
<head>
<base href="http://www.performancemodifiedcars.co.uk/"
target="_blank">
</head>
<body>
<p><a href="top_modified_feature_cars.htm">Feature
Cars</a></p>
<p><img src="feature_cars/toyota_supra/1.jpg"></p>
</body>
© Martin Allen 1999 - 2006. Last updated Sunday 01 October 2006 06:13:41 PM +0100.
|