| use it|
HREF: default address for hypertext links
TARGET: default window for linked documents
<BASE ...> tells the browser to pretend that the current page is located at some URL other than where the browser found it. Any
relative reference will be
calculated from the URL given by
instead of the actual URL.
<BASE ...> goes in the
For example, consider a page whose URL is
http://www.idocs.com/tags/linking/baseexample.html, and the full code of the page is this:
<TITLE>Example of the BASE Tag</TITLE>
<A HREF="index.html">go home</A>
<BASE ...> tag on this page tells the browser to pretend that the page is located
The link on the page makes a relative reference to
"index.html". Instead of calculating the full URL of the link as
http://www.idocs.com/tags/linking/index.html, the link is calculated as
Generally it's best to avoid using
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of
the Open Content License and the Open Publication License.
Contents may be redistributed or republished freely under these terms so long as credit to the original creator and
contributors is maintained.
<BASE ...>. It usually just restricts the ability to move a set of web pages from one location to another (say, from your computer where you are developing them to the server where they publicly reside). However,
<BASE ...> can come in handy in development situations where the
final version of the page will make relative references to
resources that aren't on the development machine.