Home > Web Front-end > HTML Tutorial > Introduction to the use of base link tag base_HTML/Xhtml_Web page production

Introduction to the use of base link tag base_HTML/Xhtml_Web page production

WBOY
Release: 2016-05-16 16:45:31
Original
1806 people have browsed it

When you click on the link, the web page address that pops up is http://www.jb51.net/web/ or http://www.jb51.net/css/. It is added before the files with these relative paths. The address to which the base link points. If the link in the target file does not specify a target attribute, the target attribute in the base tag is used.
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 tag:
1. When used, the BASE element must appear within the HEAD of the document, before any reference to an external source.

2. This element is available in HTML in Microsoft® Internet Explorer 3.0 and in script in 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, will cause all links on this page to open in a new page, so there is no need to add target="_blank" to each link.
Note in IE7: No additional output characters can be added before
1 and . Otherwise, IE7 will not parse base.
2. is a link reference tag, used to change the default parameter values ​​of all link tags in the file. It can only be adapted to the beginning of the file, that is, between the tags and .
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template