Tag <BASE>

The tag <BASE> serves for the indication of the full base URL-address of the document. With its help the relative reference continues to work, if the document is transferred to other catalogue or even on other computer. The tag <BASE> works similarly to a command path MS-DOS, that allows the program of viewing to define the reference to the required document even if it is in the grown-up on hierarchy the document located on the other computer.

The tag <BASE> has one obligatory parameter HREF after which the full URL-address of the document is underlined. The example of use of a tag <BASE> is below shown.

<HTML>

<HEAD>

<TITLE> the Indication of base </TITLE>

<BASE HREF = " // www.my_host.com / ~ john ">

</HEAD>

<BODY>

<IMG SRC =/gifs/news.gif " ALT = "News">

</BODY>

</HTML>

The tag <BASE> specifies to a browser where to search for a file. In case the user works with a local copy of a file and his machine is not switched - off from a network, the image of pictogram News will be found and shown in a window of a browser.