<base>
Description
This element establishes a base URL for the website. This allows you to direct every link in the page to a specific site.
<base>
is useful in forcing all page links to be
opened in a new window by setting the target attribute to _blank
.
This element is inserted within the <head>
element.
<base href='' target=''/>
Example
<html>
<head>
<base href="http://www.java2s.com/" target="_blank">
</head><!-- w w w . ja va2 s. c o m-->
<body>
<p>
<a href="index.htm">Click here</a>.
</p>
</body>
</html>
The code above generates the following result.