https://www.w3.org/wiki/HTML/Elements/base
The <base> element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information.
href
= valid URL potentially surrounded by spacestarget
= valid browsing context name or keyword ( _blank, _self, _parent, or _top)See also global attributes.
In this example, a <base> element is used to set the document base URL.
The link in the this example would be a link to "http://www.example.com/news/archives.html" [try it]:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>This is an example for the <base> element</title> <base href="http://www.example.com/news/index.html"> </head> <body> <p>Visit the <a href="archives.html">archives</a>.</p> </body> </html>
The HTML5 specification defines the <base> element in 4.2.3 The base element.
原文:http://www.cnblogs.com/yuanjiangw/p/6254577.html