The Base Tag

ken's picture

Opening tag : <BASE>
Closing tag: -

Purpose:
To set a base URL from which relative tags can be reached. If the Base tag isn't used then relative tags will link from the current document. The Base tag must appear within the <HEAD> tag.

Attributes:
href=url
- The URL which is being set as base.

target=targetwindow
- Loads the specified document into a window as indicated here - options are;
"_blank" - A new blank window.
"_self" - Load into the same window.
"_parent" - Load into the parent window.
"_top" - Load at the top of the window.
"name" - Specify the name of a frame to load into.

Example:

<HEAD>
<BASE HREF="http://www.webguruguide.com/">
</HEAD>
<A HREF="index.php">

In this case the link will resolve to http://www.webguruguide.com/index.php no matter which directory the document is stored in.

Related Tags:

-

Back to:
Alphabetical Guide
Guide By Type