it is often used in frame structures, such as the left and right frames. all the connections in the files in the left frame are displayed in the right frame. just use the base tag and write its target attribute value as the name of the right frame. this eliminates the need to specify the target attribute for each connection in the file in the left frame.
other instructions for base href tags:
1. when used, the base element must appear in the head of the document, before any reference to external sources.
2. this element is available in html of microsoft® internet explorer 3.0 and in scripts of internet explorer 4.0.
3. this element will not be rendered.
4. this element does not require a closing tag.
5. the base tag is actually useful. for example,
note in ie7:
1. no additional output characters can be added before . otherwise, ie7 will not parse base.
2. is a link base mark, used to change the default parameter values of all link marks in the file. it can only be adapted to the beginning of the file, that is, between the tags and .
<html> <head> <base href=http://www.php.cn target="_blank"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>base href用法</title> </head> <body> <a href="1.php">1.asp</a> <a href="2.php">2.asp</a> </body> </html>